#18155B#18155B

#18155B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.120 H 275.8°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#18155B
RGBrgb(24, 21, 91)
HSLhsl(243, 63%, 22%)
HSVhsv(243, 77%, 36%)
CMYKcmyk(73.6%, 76.9%, 0%, 64.3%)
CIE-LABlab(12.52, 26.43, -41.22)
CIE-LCHlch(12.52, 48.96, 302.67°)
OKLaboklab(25.71% 0.0121 -0.1191)
OKLCHoklch(25.71% 0.12 275.8)
XYZxyz(2.5326, 1.4856, 10.0488)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18155B #585B15
analogous
#15355B #18155B #3B155B
triadic
#18155B #5B1815 #155B18
tetradic
#18155B #5B1535 #585B15 #155B3B
square
#18155B #5B1535 #585B15 #155B3B
split-complementary
#18155B #5B3B15 #355B15
monochromatic
#070619 #0B0A29 #18155B #25208D #322CBE

Accessibility & contrast

On white

16.19
#18155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#18155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18155B
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18155B#FFFFFF#000000##FFFFFF
##18155B1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001D5A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18155b;
/* rgb */ color: rgb(24, 21, 91);
/* oklch */ color: oklch(25.7% 0.120 275.8);
Tailwind
colors: {
  custom: {
    50: '#60538a',
    500: '#18155b',
    950: '#000000',
  },
}
SCSS
$custom: #18155b;
$custom-light: #60538a;
$custom-dark: #000000;
JSON
{
  "hex": "#18155b",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 242.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25707,
    "c": 0.11971,
    "h": 275.8
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#18155B
secondary
#8F9239
accent
#E642DF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18155B

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

Preview Lab → · Contrast checker → · Palette generator →

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