#22378E#22378E

#22378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.146 H 268.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#22378E
RGBrgb(34, 55, 142)
HSLhsl(228, 61%, 35%)
HSVhsv(228, 76%, 56%)
CMYKcmyk(76.1%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.80, 24.14, -50.58)
CIE-LCHlch(26.80, 56.05, 295.52°)
OKLaboklab(37.82% -0.0048 -0.1461)
OKLCHoklch(37.82% 0.146 268.1)
XYZxyz(6.9067, 5.0247, 26.1918)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22378E #8E7922
analogous
#226D8E #22378E #43228E
triadic
#22378E #8E2237 #378E22
tetradic
#22378E #8E226D #8E7922 #228E43
square
#22378E #8E226D #8E7922 #228E43
split-complementary
#22378E #8E4322 #6D8E22
monochromatic
#0A112B #16245D #22378E #2E4ABF #546ED6

Accessibility & contrast

On white

10.47
#22378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#22378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22378E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22378E#FFFFFF#000000##FFFFFF
##22378E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #22378e;
/* rgb */ color: rgb(34, 55, 142);
/* oklch */ color: oklch(37.8% 0.146 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e6db0',
    500: '#22378e',
    950: '#000000',
  },
}
SCSS
$custom: #22378e;
$custom-light: #6e6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#22378e",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 228.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37824,
    "c": 0.14614,
    "h": 268.1
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#22378E
secondary
#BAA652
accent
#C543E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #22378E

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

Preview Lab → · Contrast checker → · Palette generator →

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