#222287#222287

#222287 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 273.3°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#222287
RGBrgb(34, 34, 135)
HSLhsl(240, 60%, 33%)
HSVhsv(240, 75%, 53%)
CMYKcmyk(74.8%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.95, 35.32, -55.82)
CIE-LCHlch(20.95, 66.06, 302.32°)
OKLaboklab(33.35% 0.0093 -0.1615)
OKLCHoklch(33.35% 0.162 273.3)
XYZxyz(5.6034, 3.2328, 23.2457)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222287 #878722
analogous
#225487 #222287 #542287
triadic
#222287 #872222 #228722
tetradic
#222287 #872254 #878722 #228754
square
#222287 #872254 #878722 #228754
split-complementary
#222287 #875422 #548722
monochromatic
#090925 #161656 #222287 #2E2EB8 #5050D3

Accessibility & contrast

On white

12.75
#222287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222287
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222287#FFFFFF#000000##FFFFFF
##2222871.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222287;
/* rgb */ color: rgb(34, 34, 135);
/* oklch */ color: oklch(33.4% 0.162 273.3);
Tailwind
colors: {
  custom: {
    50: '#6e5eab',
    500: '#222287',
    950: '#000000',
  },
}
SCSS
$custom: #222287;
$custom-light: #6e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#222287",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33351,
    "c": 0.16176,
    "h": 273.3
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#222287
secondary
#B7B74E
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222287

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

Preview Lab → · Contrast checker → · Palette generator →

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