#20227F#20227F

#20227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.152 H 273.1°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#20227F
RGBrgb(32, 34, 127)
HSLhsl(239, 60%, 31%)
HSVhsv(239, 75%, 50%)
CMYKcmyk(74.8%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.98, 32.25, -52.39)
CIE-LCHlch(19.98, 61.52, 301.61°)
OKLaboklab(32.36% 0.0081 -0.1515)
OKLCHoklch(32.36% 0.152 273.1)
XYZxyz(4.9972, 2.9829, 20.3870)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20227F #7F7D20
analogous
#20517F #20227F #4D207F
triadic
#20227F #7F2022 #227F20
tetradic
#20227F #7F2051 #7F7D20 #207F4D
square
#20227F #7F2051 #7F7D20 #207F4D
split-complementary
#20227F #7F4D20 #517F20
monochromatic
#07081D #14154E #20227F #2C2FB0 #484BD1

Accessibility & contrast

On white

13.15
#20227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#20227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20227F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20227F#FFFFFF#000000##FFFFFF
##20227F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20227f;
/* rgb */ color: rgb(32, 34, 127);
/* oklch */ color: oklch(32.4% 0.152 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ea5',
    500: '#20227f',
    950: '#000000',
  },
}
SCSS
$custom: #20227f;
$custom-light: #6b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#20227f",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 238.737,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.15176,
    "h": 273.1
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#20227F
secondary
#B2B049
accent
#E045E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20227F

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

Preview Lab → · Contrast checker → · Palette generator →

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