#20339D#20339D

#20339D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.172 H 268.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#20339D
RGBrgb(32, 51, 157)
HSLhsl(231, 66%, 37%)
HSVhsv(231, 80%, 62%)
CMYKcmyk(79.6%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.04, 32.35, -59.40)
CIE-LCHlch(27.04, 67.64, 298.57°)
OKLaboklab(38.39% -0.0046 -0.172)
OKLCHoklch(38.39% 0.172 268.5)
XYZxyz(7.8632, 5.1082, 32.4633)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20339D #9D8A20
analogous
#20729D #20339D #4C209D
triadic
#20339D #9D2033 #339D20
tetradic
#20339D #9D2072 #9D8A20 #209D4C
square
#20339D #9D2072 #9D8A20 #209D4C
split-complementary
#20339D #9D4C20 #729D20
monochromatic
#0B1237 #16226A #20339D #2A44D0 #5A6EDD

Accessibility & contrast

On white

10.39
#20339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#20339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20339D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20339D#FFFFFF#000000##FFFFFF
##20339D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20339d;
/* rgb */ color: rgb(32, 51, 157);
/* oklch */ color: oklch(38.4% 0.172 268.5);
Tailwind
colors: {
  custom: {
    50: '#726abb',
    500: '#20339d',
    950: '#000000',
  },
}
SCSS
$custom: #20339d;
$custom-light: #726abb;
$custom-dark: #000000;
JSON
{
  "hex": "#20339d",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 230.88,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.17203,
    "h": 268.5
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#20339D
secondary
#C1B157
accent
#CF3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #20339D

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

Preview Lab → · Contrast checker → · Palette generator →

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