#222789#222789

#222789 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.159 H 272.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#222789
RGBrgb(34, 39, 137)
HSLhsl(237, 60%, 34%)
HSVhsv(237, 75%, 54%)
CMYKcmyk(75.2%, 71.5%, 0%, 46.3%)
CIE-LABlab(22.29, 32.92, -54.87)
CIE-LCHlch(22.29, 63.99, 300.96°)
OKLaboklab(34.37% 0.0062 -0.1587)
OKLCHoklch(34.37% 0.159 272.2)
XYZxyz(5.8990, 3.5967, 24.0454)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222789 #898422
analogous
#225A89 #222789 #502289
triadic
#222789 #892227 #278922
tetradic
#222789 #89225A #898422 #228950
square
#222789 #89225A #898422 #228950
split-complementary
#222789 #895022 #5A8922
monochromatic
#0A0B27 #161958 #222789 #2E35BA #5158D4

Accessibility & contrast

On white

12.21
#222789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#222789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222789
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222789#FFFFFF#000000##FFFFFF
##2227891.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222789;
/* rgb */ color: rgb(34, 39, 137);
/* oklch */ color: oklch(34.4% 0.159 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#222789',
    950: '#000000',
  },
}
SCSS
$custom: #222789;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222789",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 237.087,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34373,
    "c": 0.15885,
    "h": 272.2
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#222789
secondary
#B8B24F
accent
#DC44E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222789

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

Preview Lab → · Contrast checker → · Palette generator →

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