#222771#222771

#222771 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.126 H 273.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#222771
RGBrgb(34, 39, 113)
HSLhsl(236, 54%, 29%)
HSVhsv(236, 70%, 44%)
CMYKcmyk(69.9%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.98, 23.99, -43.44)
CIE-LCHlch(19.98, 49.62, 298.91°)
OKLaboklab(31.98% 0.0085 -0.1253)
OKLCHoklch(31.98% 0.126 273.9)
XYZxyz(4.3649, 2.9830, 15.9653)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222771 #716C22
analogous
#224F71 #222771 #452271
triadic
#222771 #712227 #277122
tetradic
#222771 #71224F #716C22 #227145
square
#222771 #71224F #716C22 #227145
split-complementary
#222771 #714522 #4F7122
monochromatic
#070818 #141742 #222771 #3037A0 #464EC7

Accessibility & contrast

On white

13.15
#222771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#222771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222771
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222771#FFFFFF#000000##FFFFFF
##2227711.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222771;
/* rgb */ color: rgb(34, 39, 113);
/* oklch */ color: oklch(32.0% 0.126 273.9);
Tailwind
colors: {
  custom: {
    50: '#68619b',
    500: '#222771',
    950: '#000000',
  },
}
SCSS
$custom: #222771;
$custom-light: #68619b;
$custom-dark: #000000;
JSON
{
  "hex": "#222771",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 236.203,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3198,
    "c": 0.12555,
    "h": 273.9
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#222771
secondary
#A49F4A
accent
#D44BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222771

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

Preview Lab → · Contrast checker → · Palette generator →

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