#18157B#18157B

#18157B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.162 H 271.7°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#18157B
RGBrgb(24, 21, 123)
HSLhsl(242, 71%, 28%)
HSVhsv(242, 83%, 48%)
CMYKcmyk(80.5%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.31, 37.78, -55.92)
CIE-LCHlch(16.31, 67.49, 304.04°)
OKLaboklab(29.5% 0.0049 -0.1619)
OKLCHoklch(29.5% 0.162 271.7)
XYZxyz(4.2188, 2.1601, 18.9297)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18157B #787B15
analogous
#15457B #18157B #4B157B
triadic
#18157B #7B1815 #157B18
tetradic
#18157B #7B1545 #787B15 #157B4B
square
#18157B #7B1545 #787B15 #157B4B
split-complementary
#18157B #7B4B15 #457B15
monochromatic
#05041A #0E0C47 #18157B #221EAF #342FDB

Accessibility & contrast

On white

14.66
#18157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18157B
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18157B#FFFFFF#000000##FFFFFF
##18157B1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18157b;
/* rgb */ color: rgb(24, 21, 123);
/* oklch */ color: oklch(29.5% 0.162 271.7);
Tailwind
colors: {
  custom: {
    50: '#6955a2',
    500: '#18157b',
    950: '#000000',
  },
}
SCSS
$custom: #18157b;
$custom-light: #6955a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18157b",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 241.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29496,
    "c": 0.16194,
    "h": 271.7
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#18157B
secondary
#ADB03B
accent
#EE3AE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18157B

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

Preview Lab → · Contrast checker → · Palette generator →

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