#20226B#20226B

#20226B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.124 H 274.9°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#20226B
RGBrgb(32, 34, 107)
HSLhsl(238, 54%, 27%)
HSVhsv(238, 70%, 42%)
CMYKcmyk(70.1%, 68.2%, 0%, 58%)
CIE-LABlab(17.97, 24.84, -42.83)
CIE-LCHlch(17.97, 49.51, 300.11°)
OKLaboklab(30.31% 0.0107 -0.1236)
OKLCHoklch(30.31% 0.124 274.9)
XYZxyz(3.8207, 2.5123, 14.1907)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20226B #6B6920
analogous
#20486B #20226B #44206B
triadic
#20226B #6B2022 #226B20
tetradic
#20226B #6B2048 #6B6920 #206B44
square
#20226B #6B2048 #6B6920 #206B44
split-complementary
#20226B #6B4420 #486B20
monochromatic
#070718 #12133C #20226B #2E319A #4043C6

Accessibility & contrast

On white

13.98
#20226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#20226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20226B
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20226B#FFFFFF#000000##FFFFFF
##20226B1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20226b;
/* rgb */ color: rgb(32, 34, 107);
/* oklch */ color: oklch(30.3% 0.124 274.9);
Tailwind
colors: {
  custom: {
    50: '#665d96',
    500: '#20226b',
    950: '#000000',
  },
}
SCSS
$custom: #20226b;
$custom-light: #665d96;
$custom-dark: #000000;
JSON
{
  "hex": "#20226b",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 238.4,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30306,
    "c": 0.12402,
    "h": 274.9
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#20226B
secondary
#9F9D48
accent
#D94ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20226B

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

Preview Lab → · Contrast checker → · Palette generator →

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