#20337B#20337B

#20337B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.125 H 268.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#20337B
RGBrgb(32, 51, 123)
HSLhsl(227, 59%, 30%)
HSVhsv(227, 74%, 48%)
CMYKcmyk(74%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.01, 19.19, -43.25)
CIE-LCHlch(24.01, 47.32, 293.93°)
OKLaboklab(35.22% -0.0041 -0.1246)
OKLCHoklch(35.22% 0.125 268.1)
XYZxyz(5.3534, 4.1042, 19.2451)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20337B #7B6820
analogous
#20607B #20337B #3B207B
triadic
#20337B #7B2033 #337B20
tetradic
#20337B #7B2060 #7B6820 #207B3B
square
#20337B #7B2060 #7B6820 #207B3B
split-complementary
#20337B #7B3B20 #607B20
monochromatic
#070B1A #131F4A #20337B #2D47AC #4663CF

Accessibility & contrast

On white

11.53
#20337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#20337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20337B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20337B#FFFFFF#000000##FFFFFF
##20337B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #20337b;
/* rgb */ color: rgb(32, 51, 123);
/* oklch */ color: oklch(35.2% 0.125 268.1);
Tailwind
colors: {
  custom: {
    50: '#696aa2',
    500: '#20337b',
    950: '#000000',
  },
}
SCSS
$custom: #20337b;
$custom-light: #696aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#20337b",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 227.473,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.1247,
    "h": 268.1
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#20337B
secondary
#AE9949
accent
#C146E2
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20337B

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

Preview Lab → · Contrast checker → · Palette generator →

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