#222881#222881

#222881 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.147 H 272.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#222881
RGBrgb(34, 40, 129)
HSLhsl(236, 58%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(73.6%, 69%, 0%, 49.4%)
CIE-LABlab(21.73, 29.33, -50.76)
CIE-LCHlch(21.73, 58.62, 300.02°)
OKLaboklab(33.73% 0.0065 -0.1467)
OKLCHoklch(33.73% 0.147 272.5)
XYZxyz(5.3796, 3.4421, 21.1455)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222881 #817B22
analogous
#225781 #222881 #4C2281
triadic
#222881 #812228 #288122
tetradic
#222881 #812257 #817B22 #22814C
square
#222881 #812257 #817B22 #22814C
split-complementary
#222881 #814C22 #578122
monochromatic
#080A20 #151951 #222881 #2F37B1 #4D56D0

Accessibility & contrast

On white

12.44
#222881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222881
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222881#FFFFFF#000000##FFFFFF
##2228811.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222881;
/* rgb */ color: rgb(34, 40, 129);
/* oklch */ color: oklch(33.7% 0.147 272.5);
Tailwind
colors: {
  custom: {
    50: '#6c62a6',
    500: '#222881',
    950: '#000000',
  },
}
SCSS
$custom: #222881;
$custom-light: #6c62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222881",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 236.211,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33728,
    "c": 0.14686,
    "h": 272.5
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#222881
secondary
#B3AD4B
accent
#D846E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222881

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

Preview Lab → · Contrast checker → · Palette generator →

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