#18157C#18157C

#18157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 271.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#18157C
RGBrgb(24, 21, 124)
HSLhsl(242, 71%, 28%)
HSVhsv(242, 83%, 49%)
CMYKcmyk(80.6%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.43, 38.12, -56.36)
CIE-LCHlch(16.43, 68.04, 304.07°)
OKLaboklab(29.62% 0.0046 -0.1631)
OKLCHoklch(29.62% 0.163 271.6)
XYZxyz(4.2817, 2.1853, 19.2610)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18157C #797C15
analogous
#15457C #18157C #4B157C
triadic
#18157C #7C1815 #157C18
tetradic
#18157C #7C1545 #797C15 #157C4B
square
#18157C #7C1545 #797C15 #157C4B
split-complementary
#18157C #7C4B15 #457C15
monochromatic
#05041A #0E0C48 #18157C #221EB0 #3530DC

Accessibility & contrast

On white

14.61
#18157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18157C
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18157C#FFFFFF#000000##FFFFFF
##18157C1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18157c;
/* rgb */ color: rgb(24, 21, 124);
/* oklch */ color: oklch(29.6% 0.163 271.6);
Tailwind
colors: {
  custom: {
    50: '#6955a3',
    500: '#18157c',
    950: '#000000',
  },
}
SCSS
$custom: #18157c;
$custom-light: #6955a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18157c",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 241.748,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.16319,
    "h": 271.6
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18157C

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

Preview Lab → · Contrast checker → · Palette generator →

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