#17227E#17227E

#17227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.153 H 269.3°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#17227E
RGBrgb(23, 34, 126)
HSLhsl(234, 69%, 29%)
HSVhsv(234, 82%, 49%)
CMYKcmyk(81.7%, 73%, 0%, 50.6%)
CIE-LABlab(19.36, 30.99, -52.79)
CIE-LCHlch(19.36, 61.21, 300.41°)
OKLaboklab(31.75% -0.0019 -0.1529)
OKLCHoklch(31.75% 0.153 269.3)
XYZxyz(4.6900, 2.8320, 20.0341)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17227E #7E7317
analogous
#17567E #17227E #40177E
triadic
#17227E #7E1722 #227E17
tetradic
#17227E #7E1756 #7E7317 #177E40
square
#17227E #7E1756 #7E7317 #177E40
split-complementary
#17227E #7E4017 #567E17
monochromatic
#05071A #0E144A #17227E #2030B2 #3547DA

Accessibility & contrast

On white

13.40
#17227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#17227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17227E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17227E#FFFFFF#000000##FFFFFF
##17227E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #17227e;
/* rgb */ color: rgb(23, 34, 126);
/* oklch */ color: oklch(31.7% 0.153 269.3);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#17227e',
    950: '#000000',
  },
}
SCSS
$custom: #17227e;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#17227e",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 233.592,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31749,
    "c": 0.15292,
    "h": 269.3
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#17227E
secondary
#B3A63E
accent
#D93CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #17227E

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

Preview Lab → · Contrast checker → · Palette generator →

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