#20237E#20237E

#20237E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.149 H 272.9°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#20237E
RGBrgb(32, 35, 126)
HSLhsl(238, 59%, 31%)
HSVhsv(238, 75%, 49%)
CMYKcmyk(74.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.10, 31.24, -51.55)
CIE-LCHlch(20.10, 60.27, 301.22°)
OKLaboklab(32.42% 0.0077 -0.1491)
OKLCHoklch(32.42% 0.149 272.9)
XYZxyz(4.9613, 3.0150, 20.0551)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237E #7E7B20
analogous
#20527E #20237E #4C207E
triadic
#20237E #7E2023 #237E20
tetradic
#20237E #7E2052 #7E7B20 #207E4C
square
#20237E #7E2052 #7E7B20 #207E4C
split-complementary
#20237E #7E4C20 #527E20
monochromatic
#07081C #14154D #20237E #2C31AF #484CD0

Accessibility & contrast

On white

13.10
#20237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#20237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20237E
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237E#FFFFFF#000000##FFFFFF
##20237E1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #20237e;
/* rgb */ color: rgb(32, 35, 126);
/* oklch */ color: oklch(32.4% 0.149 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#20237e',
    950: '#000000',
  },
}
SCSS
$custom: #20237e;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20237e",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 238.085,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.14927,
    "h": 272.9
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#20237E
secondary
#B1AE49
accent
#DE45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20237E

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

Preview Lab → · Contrast checker → · Palette generator →

#20237E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva