#22478B#22478B

#22478B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.121 H 261.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#22478B
RGBrgb(34, 71, 139)
HSLhsl(219, 61%, 34%)
HSVhsv(219, 76%, 55%)
CMYKcmyk(75.5%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.14, 11.96, -41.71)
CIE-LCHlch(31.14, 43.39, 286.00°)
OKLaboklab(41.03% -0.0183 -0.1197)
OKLCHoklch(41.03% 0.121 261.3)
XYZxyz(7.5715, 6.7098, 25.3172)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22478B #8B6622
analogous
#227C8B #22478B #32228B
triadic
#22478B #8B2247 #478B22
tetradic
#22478B #8B227C #8B6622 #228B32
square
#22478B #8B227C #8B6622 #228B32
split-complementary
#22478B #8B3222 #7C8B22
monochromatic
#0A1529 #162E5A #22478B #2E60BC #5380D5

Accessibility & contrast

On white

8.97
#22478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#22478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22478B
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22478B#FFFFFF#000000##FFFFFF
##22478B1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8E
Deuteranopia (green-blind)
#04458A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #22478b;
/* rgb */ color: rgb(34, 71, 139);
/* oklch */ color: oklch(41.0% 0.121 261.3);
Tailwind
colors: {
  custom: {
    50: '#6c79ad',
    500: '#22478b',
    950: '#000000',
  },
}
SCSS
$custom: #22478b;
$custom-light: #6c79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22478b",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 218.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.12109,
    "h": 261.3
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#22478B
secondary
#B89450
accent
#AB44E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #22478B

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

Preview Lab → · Contrast checker → · Palette generator →

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