#20337A#20337A

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

Color values

HEX#20337A
RGBrgb(32, 51, 122)
HSLhsl(227, 58%, 30%)
HSVhsv(227, 74%, 48%)
CMYKcmyk(73.8%, 58.2%, 0%, 52.2%)
CIE-LABlab(23.93, 18.79, -42.75)
CIE-LCHlch(23.93, 46.70, 293.73°)
OKLaboklab(35.13% -0.0041 -0.1231)
OKLCHoklch(35.13% 0.123 268.1)
XYZxyz(5.2911, 4.0793, 18.9171)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20337A #7A6720
analogous
#20607A #20337A #3A207A
triadic
#20337A #7A2033 #337A20
tetradic
#20337A #7A2060 #7A6720 #207A3A
square
#20337A #7A2060 #7A6720 #207A3A
split-complementary
#20337A #7A3A20 #607A20
monochromatic
#070A19 #131F4A #20337A #2D47AA #4663CE

Accessibility & contrast

On white

11.56
#20337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20337A
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20337A#FFFFFF#000000##FFFFFF
##20337A1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #20337a;
/* rgb */ color: rgb(32, 51, 122);
/* oklch */ color: oklch(35.1% 0.123 268.1);
Tailwind
colors: {
  custom: {
    50: '#696aa1',
    500: '#20337a',
    950: '#000000',
  },
}
SCSS
$custom: #20337a;
$custom-light: #696aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#20337a",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 227.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.12322,
    "h": 268.1
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#20337A
secondary
#AD9849
accent
#C146E2
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20337A

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

Preview Lab → · Contrast checker → · Palette generator →

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