#22128E#22128E

#22128E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.184 H 274.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#22128E
RGBrgb(34, 18, 142)
HSLhsl(248, 78%, 31%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(76.1%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.91, 45.90, -63.59)
CIE-LCHlch(18.91, 78.42, 305.82°)
OKLaboklab(32.16% 0.0139 -0.1838)
OKLCHoklch(32.16% 0.184 274.3)
XYZxyz(5.7569, 2.7251, 25.8085)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22128E #7E8E12
analogous
#12408E #22128E #60128E
triadic
#22128E #8E2212 #128E22
tetradic
#22128E #8E1240 #7E8E12 #128E60
square
#22128E #8E1240 #7E8E12 #128E60
split-complementary
#22128E #8E6012 #408E12
monochromatic
#080421 #150B58 #22128E #2F19C4 #4C35E5

Accessibility & contrast

On white

13.59
#22128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#22128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22128E
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22128E#FFFFFF#000000##FFFFFF
##22128E1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22128e;
/* rgb */ color: rgb(34, 18, 142);
/* oklch */ color: oklch(32.2% 0.184 274.3);
Tailwind
colors: {
  custom: {
    50: '#7156b0',
    500: '#22128e',
    950: '#000000',
  },
}
SCSS
$custom: #22128e;
$custom-light: #7156b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22128e",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 247.742,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.18433,
    "h": 274.3
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#22128E
secondary
#B1C23A
accent
#F434DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22128E

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

Preview Lab → · Contrast checker → · Palette generator →

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