#15175F#15175F

#15175F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.124 H 272.8°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#15175F
RGBrgb(21, 23, 95)
HSLhsl(238, 64%, 23%)
HSVhsv(238, 78%, 37%)
CMYKcmyk(77.9%, 75.8%, 0%, 62.7%)
CIE-LABlab(13.22, 26.25, -42.75)
CIE-LCHlch(13.22, 50.16, 301.55°)
OKLaboklab(26.29% 0.006 -0.1237)
OKLCHoklch(26.29% 0.124 272.8)
XYZxyz(2.6805, 1.5982, 10.9915)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15175F #5F5D15
analogous
#153C5F #15175F #38155F
triadic
#15175F #5F1517 #175F15
tetradic
#15175F #5F153C #5F5D15 #155F38
square
#15175F #5F153C #5F5D15 #155F38
split-complementary
#15175F #5F3815 #3C5F15
monochromatic
#060619 #0A0B2D #15175F #202391 #2B2FC3

Accessibility & contrast

On white

15.91
#15175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#15175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15175F
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15175F#FFFFFF#000000##FFFFFF
##15175F1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #15175f;
/* rgb */ color: rgb(21, 23, 95);
/* oklch */ color: oklch(26.3% 0.124 272.8);
Tailwind
colors: {
  custom: {
    50: '#60548d',
    500: '#15175f',
    950: '#000000',
  },
}
SCSS
$custom: #15175f;
$custom-light: #60548d;
$custom-dark: #000000;
JSON
{
  "hex": "#15175f",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 238.378,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26286,
    "c": 0.1238,
    "h": 272.8
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#15175F
secondary
#96943A
accent
#E241E7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #15175F

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

Preview Lab → · Contrast checker → · Palette generator →

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