#222772#222772

#222772 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.127 H 273.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#222772
RGBrgb(34, 39, 114)
HSLhsl(236, 54%, 29%)
HSVhsv(236, 70%, 45%)
CMYKcmyk(70.2%, 65.8%, 0%, 55.3%)
CIE-LABlab(20.07, 24.37, -43.93)
CIE-LCHlch(20.07, 50.24, 299.01°)
OKLaboklab(32.07% 0.0084 -0.1267)
OKLCHoklch(32.07% 0.127 273.8)
XYZxyz(4.4215, 3.0056, 16.2635)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222772 #726D22
analogous
#224F72 #222772 #452272
triadic
#222772 #722227 #277222
tetradic
#222772 #72224F #726D22 #227245
square
#222772 #72224F #726D22 #227245
split-complementary
#222772 #724522 #4F7222
monochromatic
#070818 #141743 #222772 #3037A1 #464FC8

Accessibility & contrast

On white

13.12
#222772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222772
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222772#FFFFFF#000000##FFFFFF
##2227721.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222772;
/* rgb */ color: rgb(34, 39, 114);
/* oklch */ color: oklch(32.1% 0.127 273.8);
Tailwind
colors: {
  custom: {
    50: '#69619b',
    500: '#222772',
    950: '#000000',
  },
}
SCSS
$custom: #222772;
$custom-light: #69619b;
$custom-dark: #000000;
JSON
{
  "hex": "#222772",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 236.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.127,
    "h": 273.8
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#222772
secondary
#A5A04B
accent
#D44ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222772

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

Preview Lab → · Contrast checker → · Palette generator →

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