#222781#222781

#222781 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.148 H 272.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#222781
RGBrgb(34, 39, 129)
HSLhsl(237, 58%, 32%)
HSVhsv(237, 74%, 51%)
CMYKcmyk(73.6%, 69.8%, 0%, 49.4%)
CIE-LABlab(21.49, 29.98, -51.16)
CIE-LCHlch(21.49, 59.30, 300.37°)
OKLaboklab(33.55% 0.0071 -0.1479)
OKLCHoklch(33.55% 0.148 272.8)
XYZxyz(5.3463, 3.3756, 21.1344)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222781 #817C22
analogous
#225781 #222781 #4D2281
triadic
#222781 #812227 #278122
tetradic
#222781 #812257 #817C22 #22814D
square
#222781 #812257 #817C22 #22814D
split-complementary
#222781 #814D22 #578122
monochromatic
#080A20 #151851 #222781 #2F36B1 #4D54D0

Accessibility & contrast

On white

12.54
#222781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222781
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222781#FFFFFF#000000##FFFFFF
##2227811.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222781;
/* rgb */ color: rgb(34, 39, 129);
/* oklch */ color: oklch(33.6% 0.148 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c61a6',
    500: '#222781',
    950: '#000000',
  },
}
SCSS
$custom: #222781;
$custom-light: #6c61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222781",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 236.842,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3355,
    "c": 0.14807,
    "h": 272.8
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#222781
secondary
#B3AE4B
accent
#D946E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222781

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

Preview Lab → · Contrast checker → · Palette generator →

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