#22477B#22477B

#22477B is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.098 H 257.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#22477B
RGBrgb(34, 71, 123)
HSLhsl(215, 57%, 31%)
HSVhsv(215, 72%, 48%)
CMYKcmyk(72.4%, 42.3%, 0%, 51.8%)
CIE-LABlab(30.10, 5.63, -33.46)
CIE-LCHlch(30.10, 33.93, 279.56°)
OKLaboklab(39.89% -0.0214 -0.0954)
OKLCHoklch(39.89% 0.098 257.3)
XYZxyz(6.4868, 6.2759, 19.6046)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22477B #7B5622
analogous
#22737B #22477B #29227B
triadic
#22477B #7B2247 #477B22
tetradic
#22477B #7B2273 #7B5622 #227B29
square
#22477B #7B2273 #7B5622 #227B29
split-complementary
#22477B #7B2922 #737B22
monochromatic
#07101B #152B4B #22477B #2F63AB #4A81CD

Accessibility & contrast

On white

9.31
#22477B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#22477B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22477B
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22477B#FFFFFF#000000##FFFFFF
##22477B1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7D
Deuteranopia (green-blind)
#21437A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #22477b;
/* rgb */ color: rgb(34, 71, 123);
/* oklch */ color: oklch(39.9% 0.098 257.3);
Tailwind
colors: {
  custom: {
    50: '#6979a1',
    500: '#22477b',
    950: '#000000',
  },
}
SCSS
$custom: #22477b;
$custom-light: #6979a1;
$custom-dark: #000000;
JSON
{
  "hex": "#22477b",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 215.056,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39891,
    "c": 0.09781,
    "h": 257.3
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#22477B
secondary
#AE854B
accent
#A148E0
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #22477B

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

Preview Lab → · Contrast checker → · Palette generator →

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