#22127F#22127F

#22127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.167 H 276.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#22127F
RGBrgb(34, 18, 127)
HSLhsl(249, 75%, 28%)
HSVhsv(249, 86%, 50%)
CMYKcmyk(73.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.01, 41.31, -57.29)
CIE-LCHlch(17.01, 70.63, 305.79°)
OKLaboklab(30.32% 0.0187 -0.1655)
OKLCHoklch(30.32% 0.167 276.4)
XYZxyz(4.7055, 2.3046, 20.2714)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22127F #6F7F12
analogous
#12387F #22127F #58127F
triadic
#22127F #7F2212 #127F22
tetradic
#22127F #7F1238 #6F7F12 #127F58
square
#22127F #7F1238 #6F7F12 #127F58
split-complementary
#22127F #7F5812 #387F12
monochromatic
#07041B #140A49 #22127F #301AB5 #452BE1

Accessibility & contrast

On white

14.37
#22127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22127F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22127F#FFFFFF#000000##FFFFFF
##22127F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22127f;
/* rgb */ color: rgb(34, 18, 127);
/* oklch */ color: oklch(30.3% 0.167 276.4);
Tailwind
colors: {
  custom: {
    50: '#6e54a5',
    500: '#22127f',
    950: '#000000',
  },
}
SCSS
$custom: #22127f;
$custom-light: #6e54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22127f",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 248.807,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30315,
    "c": 0.1666,
    "h": 276.4
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#22127F
secondary
#A2B538
accent
#F236D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22127F

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

Preview Lab → · Contrast checker → · Palette generator →

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