#20229E#20229E

#20229E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.191 H 270.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#20229E
RGBrgb(32, 34, 158)
HSLhsl(239, 66%, 37%)
HSVhsv(239, 80%, 62%)
CMYKcmyk(79.7%, 78.5%, 0%, 38%)
CIE-LABlab(23.40, 43.06, -66.02)
CIE-LCHlch(23.40, 78.82, 303.12°)
OKLaboklab(35.81% 0.0026 -0.1912)
OKLCHoklch(35.81% 0.191 270.8)
XYZxyz(7.3372, 3.9189, 32.7109)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20229E #9E9C20
analogous
#20619E #20229E #5D209E
triadic
#20229E #9E2022 #229E20
tetradic
#20229E #9E2061 #9E9C20 #209E5D
square
#20229E #9E2061 #9E9C20 #209E5D
split-complementary
#20229E #9E5D20 #619E20
monochromatic
#0B0C38 #16176B #20229E #2A2DD1 #5B5DDE

Accessibility & contrast

On white

11.77
#20229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#20229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20229E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20229E#FFFFFF#000000##FFFFFF
##20229E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20229e;
/* rgb */ color: rgb(32, 34, 158);
/* oklch */ color: oklch(35.8% 0.191 270.8);
Tailwind
colors: {
  custom: {
    50: '#745fbc',
    500: '#20229e',
    950: '#000000',
  },
}
SCSS
$custom: #20229e;
$custom-light: #745fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#20229e",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 239.048,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35811,
    "c": 0.19118,
    "h": 270.8
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#20229E
secondary
#C2C058
accent
#E73FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #20229E

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

Preview Lab → · Contrast checker → · Palette generator →

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