#17226B#17226B

#17226B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.127 H 269.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#17226B
RGBrgb(23, 34, 107)
HSLhsl(232, 65%, 25%)
HSVhsv(232, 79%, 42%)
CMYKcmyk(78.5%, 68.2%, 0%, 58%)
CIE-LABlab(17.40, 23.61, -43.79)
CIE-LCHlch(17.40, 49.74, 298.33°)
OKLaboklab(29.73% -0.0001 -0.1266)
OKLCHoklch(29.73% 0.127 269.9)
XYZxyz(3.5783, 2.3874, 14.1793)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17226B #6B6017
analogous
#174C6B #17226B #36176B
triadic
#17226B #6B1722 #226B17
tetradic
#17226B #6B174C #6B6017 #176B36
square
#17226B #6B174C #6B6017 #176B36
split-complementary
#17226B #6B3617 #4C6B17
monochromatic
#050819 #0C1239 #17226B #22329D #2D42D0

Accessibility & contrast

On white

14.21
#17226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#17226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17226B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17226B#FFFFFF#000000##FFFFFF
##17226B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #17226b;
/* rgb */ color: rgb(23, 34, 107);
/* oklch */ color: oklch(29.7% 0.127 269.9);
Tailwind
colors: {
  custom: {
    50: '#635d96',
    500: '#17226b',
    950: '#000000',
  },
}
SCSS
$custom: #17226b;
$custom-light: #635d96;
$custom-dark: #000000;
JSON
{
  "hex": "#17226b",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 232.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29734,
    "c": 0.12661,
    "h": 269.9
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#17226B
secondary
#A1943D
accent
#D240E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #17226B

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

Preview Lab → · Contrast checker → · Palette generator →

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