#18157A#18157A

#18157A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.161 H 271.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#18157A
RGBrgb(24, 21, 122)
HSLhsl(242, 71%, 28%)
HSVhsv(242, 83%, 48%)
CMYKcmyk(80.3%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.18, 37.44, -55.49)
CIE-LCHlch(16.18, 66.94, 304.01°)
OKLaboklab(29.37% 0.0051 -0.1606)
OKLCHoklch(29.37% 0.161 271.8)
XYZxyz(4.1565, 2.1352, 18.6017)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18157A #777A15
analogous
#15447A #18157A #4A157A
triadic
#18157A #7A1815 #157A18
tetradic
#18157A #7A1544 #777A15 #157A4A
square
#18157A #7A1544 #777A15 #157A4A
split-complementary
#18157A #7A4A15 #447A15
monochromatic
#05041A #0E0C46 #18157A #221EAE #332EDB

Accessibility & contrast

On white

14.71
#18157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18157A
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18157A#FFFFFF#000000##FFFFFF
##18157A1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002378
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18157a;
/* rgb */ color: rgb(24, 21, 122);
/* oklch */ color: oklch(29.4% 0.161 271.8);
Tailwind
colors: {
  custom: {
    50: '#6955a2',
    500: '#18157a',
    950: '#000000',
  },
}
SCSS
$custom: #18157a;
$custom-light: #6955a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18157a",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 241.782,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.16069,
    "h": 271.8
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#18157A
secondary
#ACAF3B
accent
#ED3AE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18157A

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

Preview Lab → · Contrast checker → · Palette generator →

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