#20337E#20337E

#20337E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.129 H 268.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#20337E
RGBrgb(32, 51, 126)
HSLhsl(228, 59%, 31%)
HSVhsv(228, 75%, 49%)
CMYKcmyk(74.6%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.26, 20.38, -44.75)
CIE-LCHlch(24.26, 49.17, 294.49°)
OKLaboklab(35.48% -0.004 -0.129)
OKLCHoklch(35.48% 0.129 268.2)
XYZxyz(5.5441, 4.1805, 20.2494)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20337E #7E6B20
analogous
#20627E #20337E #3C207E
triadic
#20337E #7E2033 #337E20
tetradic
#20337E #7E2062 #7E6B20 #207E3C
square
#20337E #7E2062 #7E6B20 #207E3C
split-complementary
#20337E #7E3C20 #627E20
monochromatic
#070B1C #141F4D #20337E #2C47AF #4864D0

Accessibility & contrast

On white

11.44
#20337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#20337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20337E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20337E#FFFFFF#000000##FFFFFF
##20337E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20337e;
/* rgb */ color: rgb(32, 51, 126);
/* oklch */ color: oklch(35.5% 0.129 268.2);
Tailwind
colors: {
  custom: {
    50: '#6a6aa4',
    500: '#20337e',
    950: '#000000',
  },
}
SCSS
$custom: #20337e;
$custom-light: #6a6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#20337e",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 227.872,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.12908,
    "h": 268.2
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#20337E
secondary
#B19C49
accent
#C345E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20337E

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

Preview Lab → · Contrast checker → · Palette generator →

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