#20228B#20228B

#20228B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.167 H 272.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#20228B
RGBrgb(32, 34, 139)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 55%)
CMYKcmyk(77%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.26, 36.53, -57.82)
CIE-LCHlch(21.26, 68.39, 302.29°)
OKLaboklab(33.67% 0.0061 -0.1673)
OKLCHoklch(33.67% 0.167 272.1)
XYZxyz(5.8263, 3.3146, 24.7538)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20228B #8B8920
analogous
#20578B #20228B #53208B
triadic
#20228B #8B2022 #228B20
tetradic
#20228B #8B2057 #8B8920 #208B53
square
#20228B #8B2057 #8B8920 #208B53
split-complementary
#20228B #8B5320 #578B20
monochromatic
#090A28 #151659 #20228B #2B2EBD #4F51D6

Accessibility & contrast

On white

12.63
#20228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20228B
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20228B#FFFFFF#000000##FFFFFF
##20228B1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20228b;
/* rgb */ color: rgb(32, 34, 139);
/* oklch */ color: oklch(33.7% 0.167 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f5eae',
    500: '#20228b',
    950: '#000000',
  },
}
SCSS
$custom: #20228b;
$custom-light: #6f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#20228b",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 238.879,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.16746,
    "h": 272.1
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#20228B
secondary
#BAB84D
accent
#E342E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #20228B

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

Preview Lab → · Contrast checker → · Palette generator →

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