#22127B#22127B

#22127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.162 H 277.1°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#22127B
RGBrgb(34, 18, 123)
HSLhsl(249, 74%, 28%)
HSVhsv(249, 85%, 48%)
CMYKcmyk(72.4%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.52, 40.06, -55.56)
CIE-LCHlch(16.52, 68.49, 305.79°)
OKLaboklab(29.83% 0.0199 -0.1605)
OKLCHoklch(29.83% 0.162 277.1)
XYZxyz(4.4500, 2.2023, 18.9256)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22127B #6B7B12
analogous
#12367B #22127B #57127B
triadic
#22127B #7B2212 #127B22
tetradic
#22127B #7B1236 #6B7B12 #127B57
square
#22127B #7B1236 #6B7B12 #127B57
split-complementary
#22127B #7B5712 #367B12
monochromatic
#07041B #130A46 #22127B #311AB0 #4428E0

Accessibility & contrast

On white

14.58
#22127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#22127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22127B
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22127B#FFFFFF#000000##FFFFFF
##22127B1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22127b;
/* rgb */ color: rgb(34, 18, 123);
/* oklch */ color: oklch(29.8% 0.162 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d54a2',
    500: '#22127b',
    950: '#000000',
  },
}
SCSS
$custom: #22127b;
$custom-light: #6d54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22127b",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 249.143,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29831,
    "c": 0.16175,
    "h": 277.1
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#22127B
secondary
#9FB138
accent
#F137D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22127B

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

Preview Lab → · Contrast checker → · Palette generator →

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