#20337D#20337D

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

Color values

HEX#20337D
RGBrgb(32, 51, 125)
HSLhsl(228, 59%, 31%)
HSVhsv(228, 74%, 49%)
CMYKcmyk(74.4%, 59.2%, 0%, 51%)
CIE-LABlab(24.18, 19.98, -44.25)
CIE-LCHlch(24.18, 48.55, 294.30°)
OKLaboklab(35.39% -0.004 -0.1276)
OKLCHoklch(35.39% 0.128 268.2)
XYZxyz(5.4799, 4.1548, 19.9112)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20337D #7D6A20
analogous
#20617D #20337D #3B207D
triadic
#20337D #7D2033 #337D20
tetradic
#20337D #7D2061 #7D6A20 #207D3B
square
#20337D #7D2061 #7D6A20 #207D3B
split-complementary
#20337D #7D3B20 #617D20
monochromatic
#070B1C #141F4C #20337D #2C47AE #4763D0

Accessibility & contrast

On white

11.47
#20337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#20337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20337D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20337D#FFFFFF#000000##FFFFFF
##20337D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #20337d;
/* rgb */ color: rgb(32, 51, 125);
/* oklch */ color: oklch(35.4% 0.128 268.2);
Tailwind
colors: {
  custom: {
    50: '#696aa3',
    500: '#20337d',
    950: '#000000',
  },
}
SCSS
$custom: #20337d;
$custom-light: #696aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#20337d",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 227.742,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.12762,
    "h": 268.2
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#20337D
secondary
#B09B49
accent
#C245E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20337D

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

Preview Lab → · Contrast checker → · Palette generator →

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