#17227C#17227C

#17227C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.150 H 269.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#17227C
RGBrgb(23, 34, 124)
HSLhsl(233, 69%, 29%)
HSVhsv(233, 81%, 49%)
CMYKcmyk(81.5%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.14, 30.23, -51.87)
CIE-LCHlch(19.14, 60.04, 300.23°)
OKLaboklab(31.53% -0.0016 -0.1502)
OKLCHoklch(31.53% 0.15 269.4)
XYZxyz(4.5622, 2.7809, 19.3612)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17227C #7C7117
analogous
#17557C #17227C #3F177C
triadic
#17227C #7C1722 #227C17
tetradic
#17227C #7C1755 #7C7117 #177C3F
square
#17227C #7C1755 #7C7117 #177C3F
split-complementary
#17227C #7C3F17 #557C17
monochromatic
#05071A #0D1448 #17227C #2130B0 #3446D9

Accessibility & contrast

On white

13.49
#17227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17227C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17227C#FFFFFF#000000##FFFFFF
##17227C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17227c;
/* rgb */ color: rgb(23, 34, 124);
/* oklch */ color: oklch(31.5% 0.150 269.4);
Tailwind
colors: {
  custom: {
    50: '#685da3',
    500: '#17227c',
    950: '#000000',
  },
}
SCSS
$custom: #17227c;
$custom-light: #685da3;
$custom-dark: #000000;
JSON
{
  "hex": "#17227c",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 233.465,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3153,
    "c": 0.15024,
    "h": 269.4
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#17227C
secondary
#B1A43E
accent
#D83CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #17227C

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

Preview Lab → · Contrast checker → · Palette generator →

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