#20229F#20229F

#20229F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.192 H 270.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#20229F
RGBrgb(32, 34, 159)
HSLhsl(239, 66%, 37%)
HSVhsv(239, 80%, 62%)
CMYKcmyk(79.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.52, 43.40, -66.43)
CIE-LCHlch(23.52, 79.35, 303.15°)
OKLaboklab(35.93% 0.0024 -0.1924)
OKLCHoklch(35.93% 0.192 270.7)
XYZxyz(7.4236, 3.9535, 33.1660)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20229F #9F9D20
analogous
#20629F #20229F #5D209F
triadic
#20229F #9F2022 #229F20
tetradic
#20229F #9F2062 #9F9D20 #209F5D
square
#20229F #9F2062 #9F9D20 #209F5D
split-complementary
#20229F #9F5D20 #629F20
monochromatic
#0B0C39 #16176C #20229F #2A2DD2 #5B5DDE

Accessibility & contrast

On white

11.73
#20229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#20229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20229F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20229F#FFFFFF#000000##FFFFFF
##20229F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20229f;
/* rgb */ color: rgb(32, 34, 159);
/* oklch */ color: oklch(35.9% 0.192 270.7);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#20229f',
    950: '#000000',
  },
}
SCSS
$custom: #20229f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#20229f",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 239.055,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35926,
    "c": 0.1924,
    "h": 270.7
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#20229F
secondary
#C2C159
accent
#E73EE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #20229F

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

Preview Lab → · Contrast checker → · Palette generator →

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