#20226F#20226F

#20226F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.130 H 274.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#20226F
RGBrgb(32, 34, 111)
HSLhsl(238, 55%, 28%)
HSVhsv(238, 71%, 44%)
CMYKcmyk(71.2%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.36, 26.34, -44.80)
CIE-LCHlch(18.36, 51.97, 300.46°)
OKLaboklab(30.7% 0.0103 -0.1293)
OKLCHoklch(30.7% 0.13 274.5)
XYZxyz(4.0360, 2.5985, 15.3247)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20226F #6F6D20
analogous
#20496F #20226F #45206F
triadic
#20226F #6F2022 #226F20
tetradic
#20226F #6F2049 #6F6D20 #206F45
square
#20226F #6F2049 #6F6D20 #206F45
split-complementary
#20226F #6F4520 #496F20
monochromatic
#070718 #12133F #20226F #2E319F #4145C8

Accessibility & contrast

On white

13.82
#20226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#20226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20226F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20226F#FFFFFF#000000##FFFFFF
##20226F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20226f;
/* rgb */ color: rgb(32, 34, 111);
/* oklch */ color: oklch(30.7% 0.130 274.5);
Tailwind
colors: {
  custom: {
    50: '#675d99',
    500: '#20226f',
    950: '#000000',
  },
}
SCSS
$custom: #20226f;
$custom-light: #675d99;
$custom-dark: #000000;
JSON
{
  "hex": "#20226f",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 238.481,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30703,
    "c": 0.12974,
    "h": 274.5
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#20226F
secondary
#A3A148
accent
#DB49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20226F

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

Preview Lab → · Contrast checker → · Palette generator →

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