#20339C#20339C

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

Color values

HEX#20339C
RGBrgb(32, 51, 156)
HSLhsl(231, 66%, 37%)
HSVhsv(231, 79%, 61%)
CMYKcmyk(79.5%, 67.3%, 0%, 38.8%)
CIE-LABlab(26.94, 31.97, -58.95)
CIE-LCHlch(26.94, 67.06, 298.47°)
OKLaboklab(38.29% -0.0045 -0.1706)
OKLCHoklch(38.29% 0.171 268.5)
XYZxyz(7.7782, 5.0741, 32.0155)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20339C #9C8920
analogous
#20719C #20339C #4B209C
triadic
#20339C #9C2033 #339C20
tetradic
#20339C #9C2071 #9C8920 #209C4B
square
#20339C #9C2071 #9C8920 #209C4B
split-complementary
#20339C #9C4B20 #719C20
monochromatic
#0B1236 #162269 #20339C #2A44CF #596EDD

Accessibility & contrast

On white

10.42
#20339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20339C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20339C#FFFFFF#000000##FFFFFF
##20339C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20339c;
/* rgb */ color: rgb(32, 51, 156);
/* oklch */ color: oklch(38.3% 0.171 268.5);
Tailwind
colors: {
  custom: {
    50: '#716aba',
    500: '#20339c',
    950: '#000000',
  },
}
SCSS
$custom: #20339c;
$custom-light: #716aba;
$custom-dark: #000000;
JSON
{
  "hex": "#20339c",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 230.806,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38292,
    "c": 0.17071,
    "h": 268.5
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20339C

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

Preview Lab → · Contrast checker → · Palette generator →

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