#22177E#22177E

#22177E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 276.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#22177E
RGBrgb(34, 23, 126)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(73%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.73, 38.53, -55.46)
CIE-LCHlch(17.73, 67.53, 304.79°)
OKLaboklab(30.78% 0.0169 -0.1603)
OKLCHoklch(30.78% 0.161 276)
XYZxyz(4.7307, 2.4588, 19.9599)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22177E #737E17
analogous
#17407E #22177E #56177E
triadic
#22177E #7E2217 #177E22
tetradic
#22177E #7E1740 #737E17 #177E56
square
#22177E #7E1740 #737E17 #177E56
split-complementary
#22177E #7E5617 #407E17
monochromatic
#07051A #140E4A #22177E #3020B2 #4735DA

Accessibility & contrast

On white

14.08
#22177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22177E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22177E#FFFFFF#000000##FFFFFF
##22177E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22177e;
/* rgb */ color: rgb(34, 23, 126);
/* oklch */ color: oklch(30.8% 0.161 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#22177e',
    950: '#000000',
  },
}
SCSS
$custom: #22177e;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22177e",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 246.408,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30779,
    "c": 0.16119,
    "h": 276
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22177E

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

Preview Lab → · Contrast checker → · Palette generator →

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