#18157F#18157F

#18157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.167 H 271.3°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#18157F
RGBrgb(24, 21, 127)
HSLhsl(242, 72%, 29%)
HSVhsv(242, 83%, 50%)
CMYKcmyk(81.1%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.81, 39.12, -57.64)
CIE-LCHlch(16.81, 69.67, 304.17°)
OKLaboklab(29.99% 0.0039 -0.1668)
OKLCHoklch(29.99% 0.167 271.3)
XYZxyz(4.4743, 2.2623, 20.2754)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18157F #7C7F15
analogous
#15477F #18157F #4D157F
triadic
#18157F #7F1815 #157F18
tetradic
#18157F #7F1547 #7C7F15 #157F4D
square
#18157F #7F1547 #7C7F15 #157F4D
split-complementary
#18157F #7F4D15 #477F15
monochromatic
#05041A #0E0C4A #18157F #221EB4 #3631DD

Accessibility & contrast

On white

14.46
#18157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18157F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18157F#FFFFFF#000000##FFFFFF
##18157F1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18157f;
/* rgb */ color: rgb(24, 21, 127);
/* oklch */ color: oklch(30.0% 0.167 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#18157f',
    950: '#000000',
  },
}
SCSS
$custom: #18157f;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18157f",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 241.698,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29991,
    "c": 0.1669,
    "h": 271.3
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#18157F
secondary
#B1B43C
accent
#EE39E9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18157F

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

Preview Lab → · Contrast checker → · Palette generator →

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