#15186F#15186F

#15186F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.144 H 271.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#15186F
RGBrgb(21, 24, 111)
HSLhsl(238, 68%, 26%)
HSVhsv(238, 81%, 44%)
CMYKcmyk(81.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(15.28, 31.60, -49.89)
CIE-LCHlch(15.28, 59.06, 302.35°)
OKLaboklab(28.3% 0.0027 -0.1445)
OKLCHoklch(28.3% 0.144 271.1)
XYZxyz(3.5042, 1.9600, 15.2295)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15186F #6F6C15
analogous
#15456F #15186F #3F156F
triadic
#15186F #6F1518 #186F15
tetradic
#15186F #6F1545 #6F6C15 #156F3F
square
#15186F #6F1545 #6F6C15 #156F3F
split-complementary
#15186F #6F3F15 #456F15
monochromatic
#05061A #0B0D3C #15186F #1F23A2 #282ED6

Accessibility & contrast

On white

15.09
#15186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#15186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15186F
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15186F#FFFFFF#000000##FFFFFF
##15186F1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #15186f;
/* rgb */ color: rgb(21, 24, 111);
/* oklch */ color: oklch(28.3% 0.144 271.1);
Tailwind
colors: {
  custom: {
    50: '#645699',
    500: '#15186f',
    950: '#000000',
  },
}
SCSS
$custom: #15186f;
$custom-light: #645699;
$custom-dark: #000000;
JSON
{
  "hex": "#15186f",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 238,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.14449,
    "h": 271.1
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#15186F
secondary
#A5A23A
accent
#E53DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #15186F

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

Preview Lab → · Contrast checker → · Palette generator →

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