#222281#222281

#222281 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.154 H 273.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#222281
RGBrgb(34, 34, 129)
HSLhsl(240, 58%, 32%)
HSVhsv(240, 74%, 51%)
CMYKcmyk(73.6%, 73.6%, 0%, 49.4%)
CIE-LABlab(20.32, 33.19, -53.09)
CIE-LCHlch(20.32, 62.61, 302.01°)
OKLaboklab(32.71% 0.0103 -0.1535)
OKLCHoklch(32.71% 0.154 273.8)
XYZxyz(5.1928, 3.0686, 21.0833)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222281 #818122
analogous
#225281 #222281 #522281
triadic
#222281 #812222 #228122
tetradic
#222281 #812252 #818122 #228152
square
#222281 #812252 #818122 #228152
split-complementary
#222281 #815222 #528122
monochromatic
#080820 #151551 #222281 #2F2FB1 #4D4DD0

Accessibility & contrast

On white

13.01
#222281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#222281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222281
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222281#FFFFFF#000000##FFFFFF
##2222811.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222281;
/* rgb */ color: rgb(34, 34, 129);
/* oklch */ color: oklch(32.7% 0.154 273.8);
Tailwind
colors: {
  custom: {
    50: '#6d5ea7',
    500: '#222281',
    950: '#000000',
  },
}
SCSS
$custom: #222281;
$custom-light: #6d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#222281",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32705,
    "c": 0.15388,
    "h": 273.8
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#222281
secondary
#B3B34B
accent
#E146E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #222281

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

Preview Lab → · Contrast checker → · Palette generator →

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