#22177A#22177A

#22177A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.156 H 276.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#22177A
RGBrgb(34, 23, 122)
HSLhsl(247, 68%, 28%)
HSVhsv(247, 81%, 48%)
CMYKcmyk(72.1%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.26, 37.21, -53.68)
CIE-LCHlch(17.26, 65.32, 304.73°)
OKLaboklab(30.31% 0.018 -0.1551)
OKLCHoklch(30.31% 0.156 276.6)
XYZxyz(4.4778, 2.3576, 18.6277)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22177A #6F7A17
analogous
#173D7A #22177A #53177A
triadic
#22177A #7A2217 #177A22
tetradic
#22177A #7A173D #6F7A17 #177A53
square
#22177A #7A173D #6F7A17 #177A53
split-complementary
#22177A #7A5317 #3D7A17
monochromatic
#07051A #140D47 #22177A #3021AD #4533D9

Accessibility & contrast

On white

14.27
#22177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22177A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22177A#FFFFFF#000000##FFFFFF
##22177A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22177a;
/* rgb */ color: rgb(34, 23, 122);
/* oklch */ color: oklch(30.3% 0.156 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#22177a',
    950: '#000000',
  },
}
SCSS
$custom: #22177a;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22177a",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 246.667,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30314,
    "c": 0.15619,
    "h": 276.6
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#22177A
secondary
#A2AF3E
accent
#EB3DD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22177A

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

Preview Lab → · Contrast checker → · Palette generator →

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