#20228C#20228C

#20228C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.169 H 272.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#20228C
RGBrgb(32, 34, 140)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 55%)
CMYKcmyk(77.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.37, 36.88, -58.26)
CIE-LCHlch(21.37, 68.96, 302.34°)
OKLaboklab(33.78% 0.006 -0.1686)
OKLCHoklch(33.78% 0.169 272)
XYZxyz(5.8997, 3.3440, 25.1404)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20228C #8C8A20
analogous
#20588C #20228C #54208C
triadic
#20228C #8C2022 #228C20
tetradic
#20228C #8C2058 #8C8A20 #208C54
square
#20228C #8C2058 #8C8A20 #208C54
split-complementary
#20228C #8C5420 #588C20
monochromatic
#090A28 #15165A #20228C #2B2EBE #5052D7

Accessibility & contrast

On white

12.58
#20228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#20228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20228C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20228C#FFFFFF#000000##FFFFFF
##20228C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20228c;
/* rgb */ color: rgb(32, 34, 140);
/* oklch */ color: oklch(33.8% 0.169 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f5eaf',
    500: '#20228c',
    950: '#000000',
  },
}
SCSS
$custom: #20228c;
$custom-light: #6f5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#20228c",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 238.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.16875,
    "h": 272
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#20228C
secondary
#BAB84E
accent
#E342E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #20228C

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

Preview Lab → · Contrast checker → · Palette generator →

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