#22278B#22278B

#22278B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.162 H 272.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#22278B
RGBrgb(34, 39, 139)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.5%, 71.9%, 0%, 45.5%)
CIE-LABlab(22.50, 33.64, -55.78)
CIE-LCHlch(22.50, 65.14, 301.09°)
OKLaboklab(34.58% 0.0059 -0.1614)
OKLCHoklch(34.58% 0.162 272.1)
XYZxyz(6.0438, 3.6546, 24.8080)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22278B #8B8622
analogous
#225C8B #22278B #52228B
triadic
#22278B #8B2227 #278B22
tetradic
#22278B #8B225C #8B8622 #228B52
square
#22278B #8B225C #8B8622 #228B52
split-complementary
#22278B #8B5222 #5C8B22
monochromatic
#0A0B29 #16195A #22278B #2E35BC #5359D5

Accessibility & contrast

On white

12.13
#22278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#22278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22278B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22278B#FFFFFF#000000##FFFFFF
##22278B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22278b;
/* rgb */ color: rgb(34, 39, 139);
/* oklch */ color: oklch(34.6% 0.162 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f62ae',
    500: '#22278b',
    950: '#000000',
  },
}
SCSS
$custom: #22278b;
$custom-light: #6f62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22278b",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 237.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34582,
    "c": 0.1615,
    "h": 272.1
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#22278B
secondary
#B8B450
accent
#DC44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22278B

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

Preview Lab → · Contrast checker → · Palette generator →

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