#222151#222151

#222151 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.085 H 280.2°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#222151
RGBrgb(34, 33, 81)
HSLhsl(241, 42%, 22%)
HSVhsv(241, 59%, 32%)
CMYKcmyk(58%, 59.3%, 0%, 68.2%)
CIE-LABlab(15.60, 16.13, -29.39)
CIE-LCHlch(15.60, 33.53, 298.76°)
OKLaboklab(27.89% 0.0152 -0.084)
OKLCHoklch(27.89% 0.085 280.2)
XYZxyz(2.6883, 2.0217, 8.0316)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222151 #505121
analogous
#213851 #222151 #3A2151
triadic
#222151 #512221 #215122
tetradic
#222151 #512138 #505121 #21513A
square
#222151 #512138 #505121 #21513A
split-complementary
#222151 #513A21 #385121
monochromatic
#090916 #100F26 #222151 #34337C #4744A8

Accessibility & contrast

On white

14.95
#222151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#222151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222151
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222151#FFFFFF#000000##FFFFFF
##2221511.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052953
Deuteranopia (green-blind)
#012550
Tritanopia (blue-blind)
#0E2C35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #222151;
/* rgb */ color: rgb(34, 33, 81);
/* oklch */ color: oklch(27.9% 0.085 280.2);
Tailwind
colors: {
  custom: {
    50: '#625c82',
    500: '#222151',
    950: '#000000',
  },
}
SCSS
$custom: #222151;
$custom-light: #625c82;
$custom-dark: #000000;
JSON
{
  "hex": "#222151",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 241.25,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.08539,
    "h": 280.2
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#222151
secondary
#848549
accent
#D256CF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040A
muted
#7A797C

Preview Lab

Preview with #222151

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

Preview Lab → · Contrast checker → · Palette generator →

#222151 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva