#22177B#22177B

#22177B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.157 H 276.4°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#22177B
RGBrgb(34, 23, 123)
HSLhsl(247, 68%, 29%)
HSVhsv(247, 81%, 48%)
CMYKcmyk(72.4%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.38, 37.54, -54.13)
CIE-LCHlch(17.38, 65.87, 304.75°)
OKLaboklab(30.43% 0.0177 -0.1564)
OKLCHoklch(30.43% 0.157 276.4)
XYZxyz(4.5401, 2.3825, 18.9557)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22177B #707B17
analogous
#173E7B #22177B #54177B
triadic
#22177B #7B2217 #177B22
tetradic
#22177B #7B173E #707B17 #177B54
square
#22177B #7B173E #707B17 #177B54
split-complementary
#22177B #7B5417 #3E7B17
monochromatic
#07051A #140D47 #22177B #3021AF #4633D9

Accessibility & contrast

On white

14.22
#22177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#22177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22177B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22177B#FFFFFF#000000##FFFFFF
##22177B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22177b;
/* rgb */ color: rgb(34, 23, 123);
/* oklch */ color: oklch(30.4% 0.157 276.4);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#22177b',
    950: '#000000',
  },
}
SCSS
$custom: #22177b;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22177b",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 246.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3043,
    "c": 0.15745,
    "h": 276.4
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#22177B
secondary
#A3B03E
accent
#EB3CD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22177B

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

Preview Lab → · Contrast checker → · Palette generator →

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