#20337F#20337F

#20337F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.131 H 268.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#20337F
RGBrgb(32, 51, 127)
HSLhsl(228, 60%, 31%)
HSVhsv(228, 75%, 50%)
CMYKcmyk(74.8%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.34, 20.77, -45.24)
CIE-LCHlch(24.34, 49.78, 294.66°)
OKLaboklab(35.57% -0.0039 -0.1305)
OKLCHoklch(35.57% 0.131 268.3)
XYZxyz(5.6089, 4.2065, 20.5909)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20337F #7F6C20
analogous
#20627F #20337F #3C207F
triadic
#20337F #7F2033 #337F20
tetradic
#20337F #7F2062 #7F6C20 #207F3C
square
#20337F #7F2062 #7F6C20 #207F3C
split-complementary
#20337F #7F3C20 #627F20
monochromatic
#070C1D #141F4E #20337F #2C47B0 #4864D1

Accessibility & contrast

On white

11.40
#20337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20337F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20337F#FFFFFF#000000##FFFFFF
##20337F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20337f;
/* rgb */ color: rgb(32, 51, 127);
/* oklch */ color: oklch(35.6% 0.131 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a6aa5',
    500: '#20337f',
    950: '#000000',
  },
}
SCSS
$custom: #20337f;
$custom-light: #6a6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#20337f",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 228,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.13054,
    "h": 268.3
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20337F

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

Preview Lab → · Contrast checker → · Palette generator →

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