#2040A9#2040A9

#2040A9 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.172 H 265.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2040A9
RGBrgb(32, 64, 169)
HSLhsl(226, 68%, 39%)
HSVhsv(226, 81%, 66%)
CMYKcmyk(81.1%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.43, 28.30, -59.45)
CIE-LCHlch(31.43, 65.84, 295.46°)
OKLaboklab(41.96% -0.0123 -0.172)
OKLCHoklch(41.96% 0.172 265.9)
XYZxyz(9.5880, 6.8373, 38.3428)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040A9 #A98920
analogous
#2085A9 #2040A9 #4420A9
triadic
#2040A9 #A92040 #40A920
tetradic
#2040A9 #A92085 #A98920 #20A944
square
#2040A9 #A92085 #A98920 #20A944
split-complementary
#2040A9 #A94420 #85A920
monochromatic
#0D1942 #162D76 #2040A9 #2F56D8 #6280E1

Accessibility & contrast

On white

8.87
#2040A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2040A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040A9
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040A9#FFFFFF#000000##FFFFFF
##2040A91.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2040a9;
/* rgb */ color: rgb(32, 64, 169);
/* oklch */ color: oklch(42.0% 0.172 265.9);
Tailwind
colors: {
  custom: {
    50: '#7474c3',
    500: '#2040a9',
    950: '#000000',
  },
}
SCSS
$custom: #2040a9;
$custom-light: #7474c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2040a9",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 225.985,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.17243,
    "h": 265.9
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#2040A9
secondary
#C6AE5F
accent
#C23DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2040A9

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

Preview Lab → · Contrast checker → · Palette generator →

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