#20339B#20339B

#20339B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.169 H 268.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#20339B
RGBrgb(32, 51, 155)
HSLhsl(231, 66%, 37%)
HSVhsv(231, 79%, 61%)
CMYKcmyk(79.4%, 67.1%, 0%, 39.2%)
CIE-LABlab(26.85, 31.59, -58.50)
CIE-LCHlch(26.85, 66.48, 298.37°)
OKLaboklab(38.19% -0.0045 -0.1693)
OKLCHoklch(38.19% 0.169 268.5)
XYZxyz(7.6938, 5.0404, 31.5714)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20339B #9B8820
analogous
#20719B #20339B #4B209B
triadic
#20339B #9B2033 #339B20
tetradic
#20339B #9B2071 #9B8820 #209B4B
square
#20339B #9B2071 #9B8820 #209B4B
split-complementary
#20339B #9B4B20 #719B20
monochromatic
#0B1236 #162268 #20339B #2A44CE #596DDD

Accessibility & contrast

On white

10.46
#20339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#20339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20339B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20339B#FFFFFF#000000##FFFFFF
##20339B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #20339b;
/* rgb */ color: rgb(32, 51, 155);
/* oklch */ color: oklch(38.2% 0.169 268.5);
Tailwind
colors: {
  custom: {
    50: '#716ab9',
    500: '#20339b',
    950: '#000000',
  },
}
SCSS
$custom: #20339b;
$custom-light: #716ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#20339b",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 230.732,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38193,
    "c": 0.16939,
    "h": 268.5
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20339B

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

Preview Lab → · Contrast checker → · Palette generator →

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