#222981#222981

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

Color values

HEX#222981
RGBrgb(34, 41, 129)
HSLhsl(236, 58%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(73.6%, 68.2%, 0%, 49.4%)
CIE-LABlab(21.98, 28.66, -50.35)
CIE-LCHlch(21.98, 57.94, 299.65°)
OKLaboklab(33.91% 0.0058 -0.1455)
OKLCHoklch(33.91% 0.146 272.3)
XYZxyz(5.4137, 3.5104, 21.1569)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222981 #817A22
analogous
#225981 #222981 #4B2281
triadic
#222981 #812229 #298122
tetradic
#222981 #812259 #817A22 #22814B
square
#222981 #812259 #817A22 #22814B
split-complementary
#222981 #814B22 #598122
monochromatic
#080A20 #151A51 #222981 #2F38B1 #4D57D0

Accessibility & contrast

On white

12.34
#222981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222981
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222981#FFFFFF#000000##FFFFFF
##2229811.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222981;
/* rgb */ color: rgb(34, 41, 129);
/* oklch */ color: oklch(33.9% 0.146 272.3);
Tailwind
colors: {
  custom: {
    50: '#6c63a6',
    500: '#222981',
    950: '#000000',
  },
}
SCSS
$custom: #222981;
$custom-light: #6c63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222981",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 235.579,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33908,
    "c": 0.14563,
    "h": 272.3
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#222981
secondary
#B3AC4B
accent
#D646E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222981

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

Preview Lab → · Contrast checker → · Palette generator →

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