#222971#222971

#222971 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.123 H 273.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#222971
RGBrgb(34, 41, 113)
HSLhsl(235, 54%, 29%)
HSVhsv(235, 70%, 44%)
CMYKcmyk(69.9%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.51, 22.60, -42.57)
CIE-LCHlch(20.51, 48.19, 297.97°)
OKLaboklab(32.37% 0.0068 -0.1227)
OKLCHoklch(32.37% 0.123 273.1)
XYZxyz(4.4323, 3.1178, 15.9878)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222971 #716A22
analogous
#225171 #222971 #432271
triadic
#222971 #712229 #297122
tetradic
#222971 #712251 #716A22 #227143
square
#222971 #712251 #716A22 #227143
split-complementary
#222971 #714322 #517122
monochromatic
#070918 #141842 #222971 #303AA0 #4652C7

Accessibility & contrast

On white

12.93
#222971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222971
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222971#FFFFFF#000000##FFFFFF
##2229711.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222971;
/* rgb */ color: rgb(34, 41, 113);
/* oklch */ color: oklch(32.4% 0.123 273.1);
Tailwind
colors: {
  custom: {
    50: '#68629a',
    500: '#222971',
    950: '#000000',
  },
}
SCSS
$custom: #222971;
$custom-light: #68629a;
$custom-dark: #000000;
JSON
{
  "hex": "#222971",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 234.684,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32374,
    "c": 0.12288,
    "h": 273.1
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#222971
secondary
#A49C4A
accent
#D04BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222971

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

Preview Lab → · Contrast checker → · Palette generator →

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