#20227A#20227A

#20227A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.145 H 273.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#20227A
RGBrgb(32, 34, 122)
HSLhsl(239, 58%, 30%)
HSVhsv(239, 74%, 48%)
CMYKcmyk(73.8%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.46, 30.42, -50.06)
CIE-LCHlch(19.46, 58.58, 301.29°)
OKLaboklab(31.83% 0.0089 -0.1447)
OKLCHoklch(31.83% 0.145 273.5)
XYZxyz(4.6794, 2.8558, 18.7132)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20227A #7A7820
analogous
#204F7A #20227A #4B207A
triadic
#20227A #7A2022 #227A20
tetradic
#20227A #7A204F #7A7820 #207A4B
square
#20227A #7A204F #7A7820 #207A4B
split-complementary
#20227A #7A4B20 #4F7A20
monochromatic
#070719 #13144A #20227A #2D30AA #4649CE

Accessibility & contrast

On white

13.37
#20227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20227A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20227A#FFFFFF#000000##FFFFFF
##20227A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20227a;
/* rgb */ color: rgb(32, 34, 122);
/* oklch */ color: oklch(31.8% 0.145 273.5);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#20227a',
    950: '#000000',
  },
}
SCSS
$custom: #20227a;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#20227a",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 238.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31834,
    "c": 0.14501,
    "h": 273.5
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#20227A
secondary
#ADAB49
accent
#DE46E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20227A

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

Preview Lab → · Contrast checker → · Palette generator →

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