#20227D#20227D

#20227D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 273.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#20227D
RGBrgb(32, 34, 125)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 74%, 49%)
CMYKcmyk(74.4%, 72.8%, 0%, 51%)
CIE-LABlab(19.77, 31.52, -51.47)
CIE-LCHlch(19.77, 60.35, 301.48°)
OKLaboklab(32.15% 0.0084 -0.1488)
OKLCHoklch(32.15% 0.149 273.2)
XYZxyz(4.8681, 2.9313, 19.7073)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20227D #7D7B20
analogous
#20507D #20227D #4C207D
triadic
#20227D #7D2022 #227D20
tetradic
#20227D #7D2050 #7D7B20 #207D4C
square
#20227D #7D2050 #7D7B20 #207D4C
split-complementary
#20227D #7D4C20 #507D20
monochromatic
#07071C #14154C #20227D #2C2FAE #474AD0

Accessibility & contrast

On white

13.24
#20227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20227D
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20227D#FFFFFF#000000##FFFFFF
##20227D1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20227d;
/* rgb */ color: rgb(32, 34, 125);
/* oklch */ color: oklch(32.1% 0.149 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#20227d',
    950: '#000000',
  },
}
SCSS
$custom: #20227d;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20227d",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 238.71,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3215,
    "c": 0.14907,
    "h": 273.2
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#20227D
secondary
#B0AE49
accent
#DF45E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20227D

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

Preview Lab → · Contrast checker → · Palette generator →

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