#222272#222272

#222272 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.133 H 275.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#222272
RGBrgb(34, 34, 114)
HSLhsl(240, 54%, 29%)
HSVhsv(240, 70%, 45%)
CMYKcmyk(70.2%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.79, 27.74, -46.01)
CIE-LCHlch(18.79, 53.73, 301.09°)
OKLaboklab(31.15% 0.0125 -0.1328)
OKLCHoklch(31.15% 0.133 275.4)
XYZxyz(4.2680, 2.6987, 16.2123)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222272 #727222
analogous
#224A72 #222272 #4A2272
triadic
#222272 #722222 #227222
tetradic
#222272 #72224A #727222 #22724A
square
#222272 #72224A #727222 #22724A
split-complementary
#222272 #724A22 #4A7222
monochromatic
#070718 #141443 #222272 #3030A1 #4646C8

Accessibility & contrast

On white

13.64
#222272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#222272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222272
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222272#FFFFFF#000000##FFFFFF
##2222721.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222272;
/* rgb */ color: rgb(34, 34, 114);
/* oklch */ color: oklch(31.1% 0.133 275.4);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#222272',
    950: '#000000',
  },
}
SCSS
$custom: #222272;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222272",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31147,
    "c": 0.13344,
    "h": 275.4
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#222272
secondary
#A5A54B
accent
#DD4ADD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222272

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

Preview Lab → · Contrast checker → · Palette generator →

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