#22229B#22229B

#22229B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.187 H 271.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#22229B
RGBrgb(34, 34, 155)
HSLhsl(240, 64%, 37%)
HSVhsv(240, 78%, 61%)
CMYKcmyk(78.1%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.17, 42.20, -64.56)
CIE-LCHlch(23.17, 77.13, 303.17°)
OKLaboklab(35.58% 0.0055 -0.1869)
OKLCHoklch(35.58% 0.187 271.7)
XYZxyz(7.1461, 3.8499, 31.3705)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22229B #9B9B22
analogous
#225F9B #22229B #5F229B
triadic
#22229B #9B2222 #229B22
tetradic
#22229B #9B225F #9B9B22 #229B5F
square
#22229B #9B225F #9B9B22 #229B5F
split-complementary
#22229B #9B5F22 #5F9B22
monochromatic
#0C0C37 #171769 #22229B #2D2DCD #5C5CDB

Accessibility & contrast

On white

11.86
#22229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#22229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22229B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22229B#FFFFFF#000000##FFFFFF
##22229B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22229b;
/* rgb */ color: rgb(34, 34, 155);
/* oklch */ color: oklch(35.6% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#735fba',
    500: '#22229b',
    950: '#000000',
  },
}
SCSS
$custom: #22229b;
$custom-light: #735fba;
$custom-dark: #000000;
JSON
{
  "hex": "#22229b",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35577,
    "c": 0.18698,
    "h": 271.7
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#22229B
secondary
#C0C059
accent
#E741E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22229B

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

Preview Lab → · Contrast checker → · Palette generator →

#22229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva