#20226E#20226E

#20226E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.128 H 274.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#20226E
RGBrgb(32, 34, 110)
HSLhsl(238, 55%, 28%)
HSVhsv(238, 71%, 43%)
CMYKcmyk(70.9%, 69.1%, 0%, 56.9%)
CIE-LABlab(18.26, 25.97, -44.31)
CIE-LCHlch(18.26, 51.35, 300.37°)
OKLaboklab(30.6% 0.0104 -0.1279)
OKLCHoklch(30.6% 0.128 274.6)
XYZxyz(3.9812, 2.5766, 15.0363)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20226E #6E6C20
analogous
#20496E #20226E #45206E
triadic
#20226E #6E2022 #226E20
tetradic
#20226E #6E2049 #6E6C20 #206E45
square
#20226E #6E2049 #6E6C20 #206E45
split-complementary
#20226E #6E4520 #496E20
monochromatic
#070718 #12133F #20226E #2E319D #4144C8

Accessibility & contrast

On white

13.86
#20226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20226E
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20226E#FFFFFF#000000##FFFFFF
##20226E1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20226e;
/* rgb */ color: rgb(32, 34, 110);
/* oklch */ color: oklch(30.6% 0.128 274.6);
Tailwind
colors: {
  custom: {
    50: '#675d98',
    500: '#20226e',
    950: '#000000',
  },
}
SCSS
$custom: #20226e;
$custom-light: #675d98;
$custom-dark: #000000;
JSON
{
  "hex": "#20226e",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 238.462,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30603,
    "c": 0.12832,
    "h": 274.6
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#20226E
secondary
#A2A048
accent
#DA4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20226E

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

Preview Lab → · Contrast checker → · Palette generator →

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