#222784#222784

#222784 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.152 H 272.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#222784
RGBrgb(34, 39, 132)
HSLhsl(237, 59%, 33%)
HSVhsv(237, 74%, 52%)
CMYKcmyk(74.2%, 70.5%, 0%, 48.2%)
CIE-LABlab(21.79, 31.09, -52.56)
CIE-LCHlch(21.79, 61.07, 300.60°)
OKLaboklab(33.86% 0.0068 -0.152)
OKLCHoklch(33.86% 0.152 272.6)
XYZxyz(5.5487, 3.4565, 22.2001)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222784 #847F22
analogous
#225884 #222784 #4E2284
triadic
#222784 #842227 #278422
tetradic
#222784 #842258 #847F22 #22844E
square
#222784 #842258 #847F22 #22844E
split-complementary
#222784 #844E22 #588422
monochromatic
#090A23 #151953 #222784 #2F35B5 #4F55D2

Accessibility & contrast

On white

12.42
#222784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222784
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222784#FFFFFF#000000##FFFFFF
##2227841.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222784;
/* rgb */ color: rgb(34, 39, 132);
/* oklch */ color: oklch(33.9% 0.152 272.6);
Tailwind
colors: {
  custom: {
    50: '#6d61a9',
    500: '#222784',
    950: '#000000',
  },
}
SCSS
$custom: #222784;
$custom-light: #6d61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#222784",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 236.939,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33856,
    "c": 0.15214,
    "h": 272.6
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#222784
secondary
#B5B04D
accent
#DA46E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222784

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

Preview Lab → · Contrast checker → · Palette generator →

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