#22278C#22278C

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

Color values

HEX#22278C
RGBrgb(34, 39, 140)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.7%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.60, 34.00, -56.24)
CIE-LCHlch(22.60, 65.72, 301.16°)
OKLaboklab(34.69% 0.0058 -0.1627)
OKLCHoklch(34.69% 0.163 272)
XYZxyz(6.1172, 3.6839, 25.1945)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22278C #8C8722
analogous
#225C8C #22278C #52228C
triadic
#22278C #8C2227 #278C22
tetradic
#22278C #8C225C #8C8722 #228C52
square
#22278C #8C225C #8C8722 #228C52
split-complementary
#22278C #8C5222 #5C8C22
monochromatic
#0A0C2A #16195B #22278C #2E35BD #5359D5

Accessibility & contrast

On white

12.09
#22278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22278C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22278C#FFFFFF#000000##FFFFFF
##22278C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22278c;
/* rgb */ color: rgb(34, 39, 140);
/* oklch */ color: oklch(34.7% 0.163 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#22278c',
    950: '#000000',
  },
}
SCSS
$custom: #22278c;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#22278c",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 237.17,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34686,
    "c": 0.16282,
    "h": 272
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#22278C
secondary
#B9B451
accent
#DC44E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #22278C

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

Preview Lab → · Contrast checker → · Palette generator →

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