#20229D#20229D

#20229D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.190 H 270.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#20229D
RGBrgb(32, 34, 157)
HSLhsl(239, 66%, 37%)
HSVhsv(239, 80%, 62%)
CMYKcmyk(79.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.29, 42.73, -65.60)
CIE-LCHlch(23.29, 78.28, 303.08°)
OKLaboklab(35.7% 0.0028 -0.1899)
OKLCHoklch(35.7% 0.19 270.8)
XYZxyz(7.2514, 3.8846, 32.2594)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20229D #9D9B20
analogous
#20619D #20229D #5D209D
triadic
#20229D #9D2022 #229D20
tetradic
#20229D #9D2061 #9D9B20 #209D5D
square
#20229D #9D2061 #9D9B20 #209D5D
split-complementary
#20229D #9D5D20 #619D20
monochromatic
#0B0C37 #16176A #20229D #2A2DD0 #5A5CDD

Accessibility & contrast

On white

11.82
#20229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#20229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20229D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20229D#FFFFFF#000000##FFFFFF
##20229D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20229d;
/* rgb */ color: rgb(32, 34, 157);
/* oklch */ color: oklch(35.7% 0.190 270.8);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#20229d',
    950: '#000000',
  },
}
SCSS
$custom: #20229d;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#20229d",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 239.04,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35696,
    "c": 0.18996,
    "h": 270.8
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#20229D
secondary
#C1C057
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #20229D

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

Preview Lab → · Contrast checker → · Palette generator →

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