#22177F#22177F

#22177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 275.9°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#22177F
RGBrgb(34, 23, 127)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 50%)
CMYKcmyk(73.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.85, 38.86, -55.90)
CIE-LCHlch(17.85, 68.08, 304.81°)
OKLaboklab(30.9% 0.0166 -0.1616)
OKLCHoklch(30.9% 0.162 275.9)
XYZxyz(4.7956, 2.4847, 20.3014)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22177F #747F17
analogous
#17407F #22177F #56177F
triadic
#22177F #7F2217 #177F22
tetradic
#22177F #7F1740 #747F17 #177F56
square
#22177F #7F1740 #747F17 #177F56
split-complementary
#22177F #7F5617 #407F17
monochromatic
#07051A #140E4B #22177F #3020B3 #4736DB

Accessibility & contrast

On white

14.03
#22177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#22177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22177F
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22177F#FFFFFF#000000##FFFFFF
##22177F1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22177f;
/* rgb */ color: rgb(34, 23, 127);
/* oklch */ color: oklch(30.9% 0.162 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#22177f',
    950: '#000000',
  },
}
SCSS
$custom: #22177f;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22177f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 246.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.16244,
    "h": 275.9
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22177F

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

Preview Lab → · Contrast checker → · Palette generator →

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