#22127C#22127C

#22127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.163 H 276.9°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#22127C
RGBrgb(34, 18, 124)
HSLhsl(249, 75%, 28%)
HSVhsv(249, 85%, 49%)
CMYKcmyk(72.6%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.64, 40.37, -55.99)
CIE-LCHlch(16.64, 69.03, 305.79°)
OKLaboklab(29.95% 0.0196 -0.1618)
OKLCHoklch(29.95% 0.163 276.9)
XYZxyz(4.5129, 2.2275, 19.2570)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22127C #6C7C12
analogous
#12377C #22127C #57127C
triadic
#22127C #7C2212 #127C22
tetradic
#22127C #7C1237 #6C7C12 #127C57
square
#22127C #7C1237 #6C7C12 #127C57
split-complementary
#22127C #7C5712 #377C12
monochromatic
#07041B #130A47 #22127C #311AB1 #4429E0

Accessibility & contrast

On white

14.53
#22127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22127C
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22127C#FFFFFF#000000##FFFFFF
##22127C1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22127c;
/* rgb */ color: rgb(34, 18, 124);
/* oklch */ color: oklch(30.0% 0.163 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d54a3',
    500: '#22127c',
    950: '#000000',
  },
}
SCSS
$custom: #22127c;
$custom-light: #6d54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22127c",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 249.057,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.16297,
    "h": 276.9
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#22127C
secondary
#A0B238
accent
#F137D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22127C

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

Preview Lab → · Contrast checker → · Palette generator →

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