#222978#222978

#222978 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.133 H 272.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#222978
RGBrgb(34, 41, 120)
HSLhsl(235, 56%, 30%)
HSVhsv(235, 72%, 47%)
CMYKcmyk(71.7%, 65.8%, 0%, 52.9%)
CIE-LABlab(21.14, 25.27, -46.03)
CIE-LCHlch(21.14, 52.51, 298.77°)
OKLaboklab(33.03% 0.0064 -0.1328)
OKLCHoklch(33.03% 0.133 272.8)
XYZxyz(4.8417, 3.2816, 18.1439)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222978 #787122
analogous
#225478 #222978 #462278
triadic
#222978 #782229 #297822
tetradic
#222978 #782254 #787122 #227846
square
#222978 #782254 #787122 #227846
split-complementary
#222978 #784622 #547822
monochromatic
#070819 #141948 #222978 #3039A8 #4954CB

Accessibility & contrast

On white

12.68
#222978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222978
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222978#FFFFFF#000000##FFFFFF
##2229781.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222978;
/* rgb */ color: rgb(34, 41, 120);
/* oklch */ color: oklch(33.0% 0.133 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a62a0',
    500: '#222978',
    950: '#000000',
  },
}
SCSS
$custom: #222978;
$custom-light: #6a62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222978",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 235.116,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.13301,
    "h": 272.8
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#222978
secondary
#ABA34B
accent
#D349DF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222978

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

Preview Lab → · Contrast checker → · Palette generator →

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