#222681#222681

#222681 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.149 H 273.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#222681
RGBrgb(34, 38, 129)
HSLhsl(237, 58%, 32%)
HSVhsv(237, 74%, 51%)
CMYKcmyk(73.6%, 70.5%, 0%, 49.4%)
CIE-LABlab(21.25, 30.64, -51.56)
CIE-LCHlch(21.25, 59.97, 300.72°)
OKLaboklab(33.38% 0.0078 -0.1491)
OKLCHoklch(33.38% 0.149 273)
XYZxyz(5.3139, 3.3108, 21.1236)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222681 #817D22
analogous
#225681 #222681 #4E2281
triadic
#222681 #812226 #268122
tetradic
#222681 #812256 #817D22 #22814E
square
#222681 #812256 #817D22 #22814E
split-complementary
#222681 #814E22 #568122
monochromatic
#080920 #151851 #222681 #2F34B1 #4D53D0

Accessibility & contrast

On white

12.63
#222681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222681
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222681#FFFFFF#000000##FFFFFF
##2226811.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222681;
/* rgb */ color: rgb(34, 38, 129);
/* oklch */ color: oklch(33.4% 0.149 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c61a7',
    500: '#222681',
    950: '#000000',
  },
}
SCSS
$custom: #222681;
$custom-light: #6c61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222681",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 129
  },
  "hsl": {
    "h": 237.474,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33376,
    "c": 0.14926,
    "h": 273
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#222681
secondary
#B3AF4B
accent
#DB46E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222681

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

Preview Lab → · Contrast checker → · Palette generator →

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