#22177D#22177D

#22177D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.160 H 276.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#22177D
RGBrgb(34, 23, 125)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(72.8%, 81.6%, 0%, 51%)
CIE-LABlab(17.61, 38.20, -55.01)
CIE-LCHlch(17.61, 66.98, 304.78°)
OKLaboklab(30.66% 0.0171 -0.159)
OKLCHoklch(30.66% 0.16 276.1)
XYZxyz(4.6665, 2.4331, 19.6218)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22177D #727D17
analogous
#173F7D #22177D #55177D
triadic
#22177D #7D2217 #177D22
tetradic
#22177D #7D173F #727D17 #177D55
square
#22177D #7D173F #727D17 #177D55
split-complementary
#22177D #7D5517 #3F7D17
monochromatic
#07051A #140D49 #22177D #3021B1 #4635DA

Accessibility & contrast

On white

14.12
#22177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#22177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22177D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22177D#FFFFFF#000000##FFFFFF
##22177D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22177d;
/* rgb */ color: rgb(34, 23, 125);
/* oklch */ color: oklch(30.7% 0.160 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d57a4',
    500: '#22177d',
    950: '#000000',
  },
}
SCSS
$custom: #22177d;
$custom-light: #6d57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22177d",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 246.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.15995,
    "h": 276.1
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#22177D
secondary
#A5B23E
accent
#EC3CD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22177D

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

Preview Lab → · Contrast checker → · Palette generator →

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