#17227D#17227D

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

Color values

HEX#17227D
RGBrgb(23, 34, 125)
HSLhsl(234, 69%, 29%)
HSVhsv(234, 82%, 49%)
CMYKcmyk(81.6%, 72.8%, 0%, 51%)
CIE-LABlab(19.25, 30.61, -52.33)
CIE-LCHlch(19.25, 60.63, 300.32°)
OKLaboklab(31.64% -0.0018 -0.1516)
OKLCHoklch(31.64% 0.152 269.3)
XYZxyz(4.6258, 2.8064, 19.6959)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17227D #7D7217
analogous
#17557D #17227D #3F177D
triadic
#17227D #7D1722 #227D17
tetradic
#17227D #7D1755 #7D7217 #177D3F
square
#17227D #7D1755 #7D7217 #177D3F
split-complementary
#17227D #7D3F17 #557D17
monochromatic
#05071A #0D1449 #17227D #2130B1 #3546DA

Accessibility & contrast

On white

13.45
#17227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#17227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17227D
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17227D#FFFFFF#000000##FFFFFF
##17227D1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17227d;
/* rgb */ color: rgb(23, 34, 125);
/* oklch */ color: oklch(31.6% 0.152 269.3);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#17227d',
    950: '#000000',
  },
}
SCSS
$custom: #17227d;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#17227d",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 233.529,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.15158,
    "h": 269.3
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17227D

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

Preview Lab → · Contrast checker → · Palette generator →

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