#22478C#22478C

#22478C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.1% C 0.123 H 261.5°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#22478C
RGBrgb(34, 71, 140)
HSLhsl(219, 61%, 34%)
HSVhsv(219, 76%, 55%)
CMYKcmyk(75.7%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.21, 12.36, -42.22)
CIE-LCHlch(31.21, 43.99, 286.32°)
OKLaboklab(41.1% -0.0181 -0.1212)
OKLCHoklch(41.1% 0.123 261.5)
XYZxyz(7.6449, 6.7392, 25.7037)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22478C #8C6722
analogous
#227C8C #22478C #32228C
triadic
#22478C #8C2247 #478C22
tetradic
#22478C #8C227C #8C6722 #228C32
square
#22478C #8C227C #8C6722 #228C32
split-complementary
#22478C #8C3222 #7C8C22
monochromatic
#0A152A #162E5B #22478C #2E60BD #5381D5

Accessibility & contrast

On white

8.94
#22478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#22478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22478C
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22478C#FFFFFF#000000##FFFFFF
##22478C1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#01458B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #22478c;
/* rgb */ color: rgb(34, 71, 140);
/* oklch */ color: oklch(41.1% 0.123 261.5);
Tailwind
colors: {
  custom: {
    50: '#6d79ae',
    500: '#22478c',
    950: '#000000',
  },
}
SCSS
$custom: #22478c;
$custom-light: #6d79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22478c",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 219.057,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41102,
    "c": 0.12253,
    "h": 261.5
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#22478C
secondary
#B99551
accent
#AC44E4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #22478C

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

Preview Lab → · Contrast checker → · Palette generator →

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