#20227E#20227E

#20227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.150 H 273.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#20227E
RGBrgb(32, 34, 126)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(74.6%, 73%, 0%, 50.6%)
CIE-LABlab(19.87, 31.88, -51.93)
CIE-LCHlch(19.87, 60.94, 301.55°)
OKLaboklab(32.26% 0.0083 -0.1502)
OKLCHoklch(32.26% 0.15 273.2)
XYZxyz(4.9323, 2.9570, 20.0454)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20227E #7E7C20
analogous
#20517E #20227E #4D207E
triadic
#20227E #7E2022 #227E20
tetradic
#20227E #7E2051 #7E7C20 #207E4D
square
#20227E #7E2051 #7E7C20 #207E4D
split-complementary
#20227E #7E4D20 #517E20
monochromatic
#07081C #14154D #20227E #2C2FAF #484BD0

Accessibility & contrast

On white

13.20
#20227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20227E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20227E#FFFFFF#000000##FFFFFF
##20227E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20227e;
/* rgb */ color: rgb(32, 34, 126);
/* oklch */ color: oklch(32.3% 0.150 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#20227e',
    950: '#000000',
  },
}
SCSS
$custom: #20227e;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20227e",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 238.723,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32256,
    "c": 0.15042,
    "h": 273.2
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#20227E
secondary
#B1AF49
accent
#DF45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20227E

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

Preview Lab → · Contrast checker → · Palette generator →

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