#22278E#22278E

#22278E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.165 H 271.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#22278E
RGBrgb(34, 39, 142)
HSLhsl(237, 61%, 35%)
HSVhsv(237, 76%, 56%)
CMYKcmyk(76.1%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.80, 34.72, -57.14)
CIE-LCHlch(22.80, 66.86, 301.29°)
OKLaboklab(34.9% 0.0055 -0.1653)
OKLCHoklch(34.9% 0.165 271.9)
XYZxyz(6.2660, 3.7435, 25.9783)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22278E #8E8922
analogous
#225D8E #22278E #53228E
triadic
#22278E #8E2227 #278E22
tetradic
#22278E #8E225D #8E8922 #228E53
square
#22278E #8E225D #8E8922 #228E53
split-complementary
#22278E #8E5322 #5D8E22
monochromatic
#0A0C2B #16195D #22278E #2E35BF #545AD6

Accessibility & contrast

On white

12.01
#22278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#22278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22278E
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22278E#FFFFFF#000000##FFFFFF
##22278E1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22278e;
/* rgb */ color: rgb(34, 39, 142);
/* oklch */ color: oklch(34.9% 0.165 271.9);
Tailwind
colors: {
  custom: {
    50: '#7062b0',
    500: '#22278e',
    950: '#000000',
  },
}
SCSS
$custom: #22278e;
$custom-light: #7062b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22278e",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 237.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34897,
    "c": 0.16544,
    "h": 271.9
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#22278E
secondary
#BAB552
accent
#DD43E4
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22278E

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

Preview Lab → · Contrast checker → · Palette generator →

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