#17227B#17227B

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

Color values

HEX#17227B
RGBrgb(23, 34, 123)
HSLhsl(233, 68%, 29%)
HSVhsv(233, 81%, 48%)
CMYKcmyk(81.3%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.04, 29.85, -51.41)
CIE-LCHlch(19.04, 59.45, 300.14°)
OKLaboklab(31.42% -0.0015 -0.1489)
OKLCHoklch(31.42% 0.149 269.4)
XYZxyz(4.4993, 2.7558, 19.0298)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17227B #7B7017
analogous
#17547B #17227B #3E177B
triadic
#17227B #7B1722 #227B17
tetradic
#17227B #7B1754 #7B7017 #177B3E
square
#17227B #7B1754 #7B7017 #177B3E
split-complementary
#17227B #7B3E17 #547B17
monochromatic
#05071A #0D1447 #17227B #2130AF #3346D9

Accessibility & contrast

On white

13.54
#17227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#17227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17227B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17227B#FFFFFF#000000##FFFFFF
##17227B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17227b;
/* rgb */ color: rgb(23, 34, 123);
/* oklch */ color: oklch(31.4% 0.149 269.4);
Tailwind
colors: {
  custom: {
    50: '#675da2',
    500: '#17227b',
    950: '#000000',
  },
}
SCSS
$custom: #17227b;
$custom-light: #675da2;
$custom-dark: #000000;
JSON
{
  "hex": "#17227b",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 233.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31422,
    "c": 0.14889,
    "h": 269.4
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#17227B
secondary
#B0A33E
accent
#D83CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #17227B

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

Preview Lab → · Contrast checker → · Palette generator →

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