#222871#222871

#222871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.124 H 273.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#222871
RGBrgb(34, 40, 113)
HSLhsl(235, 54%, 29%)
HSVhsv(235, 70%, 44%)
CMYKcmyk(69.9%, 64.6%, 0%, 55.7%)
CIE-LABlab(20.24, 23.29, -43.00)
CIE-LCHlch(20.24, 48.91, 298.44°)
OKLaboklab(32.18% 0.0076 -0.124)
OKLCHoklch(32.18% 0.124 273.5)
XYZxyz(4.3981, 3.0495, 15.9764)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222871 #716B22
analogous
#225071 #222871 #442271
triadic
#222871 #712228 #287122
tetradic
#222871 #712250 #716B22 #227144
square
#222871 #712250 #716B22 #227144
split-complementary
#222871 #714422 #507122
monochromatic
#070818 #141742 #222871 #3039A0 #4650C7

Accessibility & contrast

On white

13.04
#222871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#222871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222871
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222871#FFFFFF#000000##FFFFFF
##2228711.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222871;
/* rgb */ color: rgb(34, 40, 113);
/* oklch */ color: oklch(32.2% 0.124 273.5);
Tailwind
colors: {
  custom: {
    50: '#68629a',
    500: '#222871',
    950: '#000000',
  },
}
SCSS
$custom: #222871;
$custom-light: #68629a;
$custom-dark: #000000;
JSON
{
  "hex": "#222871",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 235.443,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32176,
    "c": 0.12421,
    "h": 273.5
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#222871
secondary
#A49D4A
accent
#D24BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222871

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

Preview Lab → · Contrast checker → · Palette generator →

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