#2040A7#2040A7

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

Color values

HEX#2040A7
RGBrgb(32, 64, 167)
HSLhsl(226, 68%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(80.8%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.26, 27.53, -58.53)
CIE-LCHlch(31.26, 64.68, 295.19°)
OKLaboklab(41.78% -0.0123 -0.1693)
OKLCHoklch(41.78% 0.17 265.9)
XYZxyz(9.4017, 6.7628, 37.3616)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040A7 #A78720
analogous
#2084A7 #2040A7 #4420A7
triadic
#2040A7 #A72040 #40A720
tetradic
#2040A7 #A72084 #A78720 #20A744
square
#2040A7 #A72084 #A78720 #20A744
split-complementary
#2040A7 #A74420 #84A720
monochromatic
#0C1940 #162C74 #2040A7 #2D56D7 #617FE1

Accessibility & contrast

On white

8.93
#2040A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2040A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040A7
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040A7#FFFFFF#000000##FFFFFF
##2040A71.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2040a7;
/* rgb */ color: rgb(32, 64, 167);
/* oklch */ color: oklch(41.8% 0.170 265.9);
Tailwind
colors: {
  custom: {
    50: '#7374c2',
    500: '#2040a7',
    950: '#000000',
  },
}
SCSS
$custom: #2040a7;
$custom-light: #7374c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2040a7",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 225.778,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41781,
    "c": 0.16974,
    "h": 265.9
  },
  "luminance": 0.06764
}

Semantic roles & 50–950 ramp

primary
#2040A7
secondary
#C5AD5D
accent
#C23DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2040A7

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

Preview Lab → · Contrast checker → · Palette generator →

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