#17227F#17227F

#17227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 269.3°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#17227F
RGBrgb(23, 34, 127)
HSLhsl(234, 69%, 29%)
HSVhsv(234, 82%, 50%)
CMYKcmyk(81.9%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.47, 31.36, -53.25)
CIE-LCHlch(19.47, 61.80, 300.50°)
OKLaboklab(31.86% -0.002 -0.1542)
OKLCHoklch(31.86% 0.154 269.3)
XYZxyz(4.7548, 2.8580, 20.3756)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17227F #7F7417
analogous
#17567F #17227F #40177F
triadic
#17227F #7F1722 #227F17
tetradic
#17227F #7F1756 #7F7417 #177F40
square
#17227F #7F1756 #7F7417 #177F40
split-complementary
#17227F #7F4017 #567F17
monochromatic
#05071A #0E144B #17227F #2030B3 #3647DB

Accessibility & contrast

On white

13.36
#17227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17227F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17227F#FFFFFF#000000##FFFFFF
##17227F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #17227f;
/* rgb */ color: rgb(23, 34, 127);
/* oklch */ color: oklch(31.9% 0.154 269.3);
Tailwind
colors: {
  custom: {
    50: '#685da5',
    500: '#17227f',
    950: '#000000',
  },
}
SCSS
$custom: #17227f;
$custom-light: #685da5;
$custom-dark: #000000;
JSON
{
  "hex": "#17227f",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 233.654,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31859,
    "c": 0.15425,
    "h": 269.3
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17227F

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

Preview Lab → · Contrast checker → · Palette generator →

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