#22127D#22127D

#22127D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 276.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#22127D
RGBrgb(34, 18, 125)
HSLhsl(249, 75%, 28%)
HSVhsv(249, 86%, 49%)
CMYKcmyk(72.8%, 85.6%, 0%, 51%)
CIE-LABlab(16.76, 40.69, -56.42)
CIE-LCHlch(16.76, 69.56, 305.79°)
OKLaboklab(30.07% 0.0193 -0.163)
OKLCHoklch(30.07% 0.164 276.8)
XYZxyz(4.5765, 2.2529, 19.5917)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22127D #6D7D12
analogous
#12377D #22127D #57127D
triadic
#22127D #7D2212 #127D22
tetradic
#22127D #7D1237 #6D7D12 #127D57
square
#22127D #7D1237 #6D7D12 #127D57
split-complementary
#22127D #7D5712 #377D12
monochromatic
#07041B #130A48 #22127D #311AB2 #4529E0

Accessibility & contrast

On white

14.48
#22127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#22127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22127D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22127D#FFFFFF#000000##FFFFFF
##22127D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22127d;
/* rgb */ color: rgb(34, 18, 125);
/* oklch */ color: oklch(30.1% 0.164 276.8);
Tailwind
colors: {
  custom: {
    50: '#6d54a4',
    500: '#22127d',
    950: '#000000',
  },
}
SCSS
$custom: #22127d;
$custom-light: #6d54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22127d",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 248.972,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30073,
    "c": 0.16418,
    "h": 276.8
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#22127D
secondary
#A1B338
accent
#F136D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22127D

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

Preview Lab → · Contrast checker → · Palette generator →

#22127D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva