#222794#222794

#222794 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.173 H 271.5°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#222794
RGBrgb(34, 39, 148)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(77%, 73.6%, 0%, 42%)
CIE-LABlab(23.43, 36.87, -59.82)
CIE-LCHlch(23.43, 70.27, 301.65°)
OKLaboklab(35.54% 0.0046 -0.1732)
OKLCHoklch(35.54% 0.173 271.5)
XYZxyz(6.7287, 3.9285, 28.4149)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222794 #948F22
analogous
#226094 #222794 #562294
triadic
#222794 #942227 #279422
tetradic
#222794 #942260 #948F22 #229456
square
#222794 #942260 #948F22 #229456
split-complementary
#222794 #945622 #609422
monochromatic
#0B0D30 #171A62 #222794 #2D34C6 #585DD9

Accessibility & contrast

On white

11.76
#222794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222794
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222794#FFFFFF#000000##FFFFFF
##2227941.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222794;
/* rgb */ color: rgb(34, 39, 148);
/* oklch */ color: oklch(35.5% 0.173 271.5);
Tailwind
colors: {
  custom: {
    50: '#7162b5',
    500: '#222794',
    950: '#000000',
  },
}
SCSS
$custom: #222794;
$custom-light: #7162b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222794",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 237.368,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35537,
    "c": 0.17322,
    "h": 271.5
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#222794
secondary
#BDB855
accent
#DF42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222794

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

Preview Lab → · Contrast checker → · Palette generator →

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