#22278D#22278D

#22278D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.164 H 272.0°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#22278D
RGBrgb(34, 39, 141)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.9%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.70, 34.36, -56.69)
CIE-LCHlch(22.70, 66.29, 301.22°)
OKLaboklab(34.79% 0.0056 -0.164)
OKLCHoklch(34.79% 0.164 272)
XYZxyz(6.1913, 3.7136, 25.5846)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22278D #8D8822
analogous
#225D8D #22278D #53228D
triadic
#22278D #8D2227 #278D22
tetradic
#22278D #8D225D #8D8822 #228D53
square
#22278D #8D225D #8D8822 #228D53
split-complementary
#22278D #8D5322 #5D8D22
monochromatic
#0A0C2A #16195C #22278D #2E35BE #545AD6

Accessibility & contrast

On white

12.05
#22278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#22278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22278D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22278D#FFFFFF#000000##FFFFFF
##22278D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22278d;
/* rgb */ color: rgb(34, 39, 141);
/* oklch */ color: oklch(34.8% 0.164 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#22278d',
    950: '#000000',
  },
}
SCSS
$custom: #22278d;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#22278d",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 237.196,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34792,
    "c": 0.16414,
    "h": 272
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#22278D
secondary
#B9B551
accent
#DD44E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #22278D

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

Preview Lab → · Contrast checker → · Palette generator →

#22278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva