#20228A#20228A

#20228A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.166 H 272.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#20228A
RGBrgb(32, 34, 138)
HSLhsl(239, 62%, 33%)
HSVhsv(239, 77%, 54%)
CMYKcmyk(76.8%, 75.4%, 0%, 45.9%)
CIE-LABlab(21.15, 36.18, -57.38)
CIE-LCHlch(21.15, 67.83, 302.24°)
OKLaboklab(33.56% 0.0063 -0.1661)
OKLCHoklch(33.56% 0.166 272.2)
XYZxyz(5.7536, 3.2855, 24.3708)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20228A #8A8820
analogous
#20578A #20228A #53208A
triadic
#20228A #8A2022 #228A20
tetradic
#20228A #8A2057 #8A8820 #208A53
square
#20228A #8A2057 #8A8820 #208A53
split-complementary
#20228A #8A5320 #578A20
monochromatic
#090A27 #141658 #20228A #2C2EBC #4E51D6

Accessibility & contrast

On white

12.67
#20228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20228A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20228A#FFFFFF#000000##FFFFFF
##20228A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20228a;
/* rgb */ color: rgb(32, 34, 138);
/* oklch */ color: oklch(33.6% 0.166 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#20228a',
    950: '#000000',
  },
}
SCSS
$custom: #20228a;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#20228a",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 238.868,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33557,
    "c": 0.16618,
    "h": 272.2
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#20228A
secondary
#B9B74D
accent
#E242E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #20228A

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

Preview Lab → · Contrast checker → · Palette generator →

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