#20228E#20228E

#20228E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 271.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#20228E
RGBrgb(32, 34, 142)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(77.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.59, 37.58, -59.14)
CIE-LCHlch(21.59, 70.08, 302.44°)
OKLaboklab(34% 0.0056 -0.1712)
OKLCHoklch(34% 0.171 271.9)
XYZxyz(6.0485, 3.4035, 25.9241)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20228E #8E8C20
analogous
#20598E #20228E #55208E
triadic
#20228E #8E2022 #228E20
tetradic
#20228E #8E2059 #8E8C20 #208E55
square
#20228E #8E2059 #8E8C20 #208E55
split-complementary
#20228E #8E5520 #598E20
monochromatic
#090A2A #15165C #20228E #2B2EC0 #5153D8

Accessibility & contrast

On white

12.49
#20228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20228E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20228E#FFFFFF#000000##FFFFFF
##20228E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20228e;
/* rgb */ color: rgb(32, 34, 142);
/* oklch */ color: oklch(34.0% 0.171 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f5eb0',
    500: '#20228e',
    950: '#000000',
  },
}
SCSS
$custom: #20228e;
$custom-light: #6f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20228e",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 238.909,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34,
    "c": 0.1713,
    "h": 271.9
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#20228E
secondary
#BBB94F
accent
#E342E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20228E

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

Preview Lab → · Contrast checker → · Palette generator →

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