#2040A5#2040A5

#2040A5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.167 H 265.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2040A5
RGBrgb(32, 64, 165)
HSLhsl(226, 68%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(80.6%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.09, 26.75, -57.61)
CIE-LCHlch(31.09, 63.52, 294.91°)
OKLaboklab(41.6% -0.0123 -0.1666)
OKLCHoklch(41.6% 0.167 265.8)
XYZxyz(9.2182, 6.6894, 36.3954)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040A5 #A58520
analogous
#2082A5 #2040A5 #4220A5
triadic
#2040A5 #A52040 #40A520
tetradic
#2040A5 #A52082 #A58520 #20A542
square
#2040A5 #A52082 #A58520 #20A542
split-complementary
#2040A5 #A54220 #82A520
monochromatic
#0C183E #162C72 #2040A5 #2C55D6 #5F7EE0

Accessibility & contrast

On white

8.98
#2040A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2040A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040A5
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040A5#FFFFFF#000000##FFFFFF
##2040A51.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2040a5;
/* rgb */ color: rgb(32, 64, 165);
/* oklch */ color: oklch(41.6% 0.167 265.8);
Tailwind
colors: {
  custom: {
    50: '#7374c1',
    500: '#2040a5',
    950: '#000000',
  },
}
SCSS
$custom: #2040a5;
$custom-light: #7374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2040a5",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 225.564,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.416,
    "c": 0.16705,
    "h": 265.8
  },
  "luminance": 0.0669
}

Semantic roles & 50–950 ramp

primary
#2040A5
secondary
#C5AC5C
accent
#C13DEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2040A5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2040A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva