#22278F#22278F

#22278F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.167 H 271.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#22278F
RGBrgb(34, 39, 143)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 76%, 56%)
CMYKcmyk(76.2%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.91, 35.09, -57.59)
CIE-LCHlch(22.91, 67.44, 301.35°)
OKLaboklab(35% 0.0053 -0.1667)
OKLCHoklch(35% 0.167 271.8)
XYZxyz(6.3415, 3.7736, 26.3754)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22278F #8F8A22
analogous
#225D8F #22278F #54228F
triadic
#22278F #8F2227 #278F22
tetradic
#22278F #8F225D #8F8A22 #228F54
square
#22278F #8F225D #8F8A22 #228F54
split-complementary
#22278F #8F5422 #5D8F22
monochromatic
#0A0C2C #161A5E #22278F #2E34C0 #555BD7

Accessibility & contrast

On white

11.97
#22278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22278F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22278F#FFFFFF#000000##FFFFFF
##22278F1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22278f;
/* rgb */ color: rgb(34, 39, 143);
/* oklch */ color: oklch(35.0% 0.167 271.8);
Tailwind
colors: {
  custom: {
    50: '#7062b1',
    500: '#22278f',
    950: '#000000',
  },
}
SCSS
$custom: #22278f;
$custom-light: #7062b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22278f",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 237.248,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.16674,
    "h": 271.8
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#22278F
secondary
#BAB652
accent
#DD43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22278F

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

Preview Lab → · Contrast checker → · Palette generator →

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