#18155D#18155D

#18155D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.123 H 275.5°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#18155D
RGBrgb(24, 21, 93)
HSLhsl(243, 63%, 22%)
HSVhsv(243, 77%, 36%)
CMYKcmyk(74.2%, 77.4%, 0%, 63.5%)
CIE-LABlab(12.74, 27.17, -42.19)
CIE-LCHlch(12.74, 50.18, 302.78°)
OKLaboklab(25.93% 0.0117 -0.1219)
OKLCHoklch(25.93% 0.123 275.5)
XYZxyz(2.6200, 1.5206, 10.5092)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18155D #5A5D15
analogous
#15365D #18155D #3C155D
triadic
#18155D #5D1815 #155D18
tetradic
#18155D #5D1536 #5A5D15 #155D3C
square
#18155D #5D1536 #5A5D15 #155D3C
split-complementary
#18155D #5D3C15 #365D15
monochromatic
#060619 #0B0A2B #18155D #25208F #322CC1

Accessibility & contrast

On white

16.10
#18155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18155D
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18155D#FFFFFF#000000##FFFFFF
##18155D1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18155d;
/* rgb */ color: rgb(24, 21, 93);
/* oklch */ color: oklch(25.9% 0.123 275.5);
Tailwind
colors: {
  custom: {
    50: '#61538c',
    500: '#18155d',
    950: '#000000',
  },
}
SCSS
$custom: #18155d;
$custom-light: #61538c;
$custom-dark: #000000;
JSON
{
  "hex": "#18155d",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 242.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.25933,
    "c": 0.12251,
    "h": 275.5
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#18155D
secondary
#919439
accent
#E642DF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18155D

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

Preview Lab → · Contrast checker → · Palette generator →

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