#20229B#20229B

#20229B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.188 H 271.0°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#20229B
RGBrgb(32, 34, 155)
HSLhsl(239, 66%, 37%)
HSVhsv(239, 79%, 61%)
CMYKcmyk(79.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.06, 42.05, -64.75)
CIE-LCHlch(23.06, 77.21, 303.00°)
OKLaboklab(35.47% 0.0032 -0.1875)
OKLCHoklch(35.47% 0.188 271)
XYZxyz(7.0821, 3.8169, 31.3675)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20229B #9B9920
analogous
#20609B #20229B #5C209B
triadic
#20229B #9B2022 #229B20
tetradic
#20229B #9B2060 #9B9920 #209B5C
square
#20229B #9B2060 #9B9920 #209B5C
split-complementary
#20229B #9B5C20 #609B20
monochromatic
#0B0C36 #161768 #20229B #2A2DCE #595BDD

Accessibility & contrast

On white

11.91
#20229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#20229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20229B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20229B#FFFFFF#000000##FFFFFF
##20229B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20229b;
/* rgb */ color: rgb(32, 34, 155);
/* oklch */ color: oklch(35.5% 0.188 271.0);
Tailwind
colors: {
  custom: {
    50: '#735fba',
    500: '#20229b',
    950: '#000000',
  },
}
SCSS
$custom: #20229b;
$custom-light: #735fba;
$custom-dark: #000000;
JSON
{
  "hex": "#20229b",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 239.024,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.18752,
    "h": 271
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#20229B
secondary
#C1BF56
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #20229B

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

Preview Lab → · Contrast checker → · Palette generator →

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