#17238F#17238F

#17238F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.174 H 268.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#17238F
RGBrgb(23, 35, 143)
HSLhsl(234, 72%, 33%)
HSVhsv(234, 84%, 56%)
CMYKcmyk(83.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.46, 36.64, -60.01)
CIE-LCHlch(21.46, 70.31, 301.41°)
OKLaboklab(33.81% -0.0045 -0.1739)
OKLCHoklch(33.81% 0.174 268.5)
XYZxyz(5.9106, 3.3667, 26.3196)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17238F #8F8317
analogous
#175F8F #17238F #47178F
triadic
#17238F #8F1723 #238F17
tetradic
#17238F #8F175F #8F8317 #178F47
square
#17238F #8F175F #8F8317 #178F47
split-complementary
#17238F #8F4717 #5F8F17
monochromatic
#060926 #0F165A #17238F #1F30C4 #4050E0

Accessibility & contrast

On white

12.55
#17238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#17238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17238F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17238F#FFFFFF#000000##FFFFFF
##17238F1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #17238f;
/* rgb */ color: rgb(23, 35, 143);
/* oklch */ color: oklch(33.8% 0.174 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d5fb1',
    500: '#17238f',
    950: '#000000',
  },
}
SCSS
$custom: #17238f;
$custom-light: #6d5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#17238f",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 234,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3381,
    "c": 0.17396,
    "h": 268.5
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#17238F
secondary
#C1B441
accent
#DD39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #17238F

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

Preview Lab → · Contrast checker → · Palette generator →

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