#22176F#22176F

#22176F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.142 H 278.5°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#22176F
RGBrgb(34, 23, 111)
HSLhsl(248, 66%, 26%)
HSVhsv(248, 79%, 44%)
CMYKcmyk(69.4%, 79.3%, 0%, 56.5%)
CIE-LABlab(16.00, 33.53, -48.66)
CIE-LCHlch(16.00, 59.10, 304.57°)
OKLaboklab(29.06% 0.0209 -0.1405)
OKLCHoklch(29.06% 0.142 278.5)
XYZxyz(3.8344, 2.1002, 15.2392)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22176F #646F17
analogous
#17386F #22176F #4E176F
triadic
#22176F #6F2217 #176F22
tetradic
#22176F #6F1738 #646F17 #176F4E
square
#22176F #6F1738 #646F17 #176F4E
split-complementary
#22176F #6F4E17 #386F17
monochromatic
#080519 #120C3C #22176F #3222A2 #422DD3

Accessibility & contrast

On white

14.79
#22176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#22176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22176F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22176F#FFFFFF#000000##FFFFFF
##22176F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #22176f;
/* rgb */ color: rgb(34, 23, 111);
/* oklch */ color: oklch(29.1% 0.142 278.5);
Tailwind
colors: {
  custom: {
    50: '#695699',
    500: '#22176f',
    950: '#000000',
  },
}
SCSS
$custom: #22176f;
$custom-light: #695699;
$custom-dark: #000000;
JSON
{
  "hex": "#22176f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 247.5,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29059,
    "c": 0.14208,
    "h": 278.5
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#22176F
secondary
#98A53D
accent
#E93FD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22176F

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

Preview Lab → · Contrast checker → · Palette generator →

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