#20227B#20227B

#20227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.146 H 273.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#20227B
RGBrgb(32, 34, 123)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 74%, 48%)
CMYKcmyk(74%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.56, 30.79, -50.53)
CIE-LCHlch(19.56, 59.17, 301.35°)
OKLaboklab(31.94% 0.0087 -0.1461)
OKLCHoklch(31.94% 0.146 273.4)
XYZxyz(4.7416, 2.8807, 19.0412)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20227B #7B7920
analogous
#20507B #20227B #4B207B
triadic
#20227B #7B2022 #227B20
tetradic
#20227B #7B2050 #7B7920 #207B4B
square
#20227B #7B2050 #7B7920 #207B4B
split-complementary
#20227B #7B4B20 #507B20
monochromatic
#07071A #13154A #20227B #2D2FAC #4649CF

Accessibility & contrast

On white

13.32
#20227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20227B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20227B#FFFFFF#000000##FFFFFF
##20227B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20227b;
/* rgb */ color: rgb(32, 34, 123);
/* oklch */ color: oklch(31.9% 0.146 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a5ea2',
    500: '#20227b',
    950: '#000000',
  },
}
SCSS
$custom: #20227b;
$custom-light: #6a5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#20227b",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 238.681,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31939,
    "c": 0.14637,
    "h": 273.4
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#20227B
secondary
#AEAC49
accent
#DE46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20227B

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

Preview Lab → · Contrast checker → · Palette generator →

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