#18157D#18157D

#18157D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.164 H 271.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#18157D
RGBrgb(24, 21, 125)
HSLhsl(242, 71%, 29%)
HSVhsv(242, 83%, 49%)
CMYKcmyk(80.8%, 83.2%, 0%, 51%)
CIE-LABlab(16.56, 38.46, -56.79)
CIE-LCHlch(16.56, 68.58, 304.11°)
OKLaboklab(29.74% 0.0044 -0.1644)
OKLCHoklch(29.74% 0.164 271.5)
XYZxyz(4.3453, 2.2107, 19.5958)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18157D #7A7D15
analogous
#15467D #18157D #4C157D
triadic
#18157D #7D1815 #157D18
tetradic
#18157D #7D1546 #7A7D15 #157D4C
square
#18157D #7D1546 #7A7D15 #157D4C
split-complementary
#18157D #7D4C15 #467D15
monochromatic
#05041A #0E0C49 #18157D #221EB1 #3530DC

Accessibility & contrast

On white

14.56
#18157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18157D
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18157D#FFFFFF#000000##FFFFFF
##18157D1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18157d;
/* rgb */ color: rgb(24, 21, 125);
/* oklch */ color: oklch(29.7% 0.164 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a55a4',
    500: '#18157d',
    950: '#000000',
  },
}
SCSS
$custom: #18157d;
$custom-light: #6a55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18157d",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 241.731,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29743,
    "c": 0.16443,
    "h": 271.5
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#18157D
secondary
#AFB23C
accent
#EE3AE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18157D

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

Preview Lab → · Contrast checker → · Palette generator →

#18157D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva