#22176D#22176D

#22176D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 278.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#22176D
RGBrgb(34, 23, 109)
HSLhsl(248, 65%, 26%)
HSVhsv(248, 79%, 43%)
CMYKcmyk(68.8%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.78, 32.85, -47.72)
CIE-LCHlch(15.78, 57.94, 304.54°)
OKLaboklab(28.84% 0.0214 -0.1378)
OKLCHoklch(28.84% 0.139 278.8)
XYZxyz(3.7255, 2.0567, 14.6657)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22176D #626D17
analogous
#17376D #22176D #4D176D
triadic
#22176D #6D2217 #176D22
tetradic
#22176D #6D1737 #626D17 #176D4D
square
#22176D #6D1737 #626D17 #176D4D
split-complementary
#22176D #6D4D17 #376D17
monochromatic
#080519 #120C3A #22176D #3222A0 #422CD2

Accessibility & contrast

On white

14.88
#22176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#22176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22176D
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22176D#FFFFFF#000000##FFFFFF
##22176D1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22176d;
/* rgb */ color: rgb(34, 23, 109);
/* oklch */ color: oklch(28.8% 0.139 278.8);
Tailwind
colors: {
  custom: {
    50: '#695698',
    500: '#22176d',
    950: '#000000',
  },
}
SCSS
$custom: #22176d;
$custom-light: #695698;
$custom-dark: #000000;
JSON
{
  "hex": "#22176d",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 247.674,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28836,
    "c": 0.13946,
    "h": 278.8
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#22176D
secondary
#96A33D
accent
#E840D3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22176D

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

Preview Lab → · Contrast checker → · Palette generator →

#22176D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva