#18155C#18155C

#18155C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.121 H 275.6°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#18155C
RGBrgb(24, 21, 92)
HSLhsl(243, 63%, 22%)
HSVhsv(243, 77%, 36%)
CMYKcmyk(73.9%, 77.2%, 0%, 63.9%)
CIE-LABlab(12.63, 26.80, -41.71)
CIE-LCHlch(12.63, 49.57, 302.72°)
OKLaboklab(25.82% 0.0119 -0.1205)
OKLCHoklch(25.82% 0.121 275.6)
XYZxyz(2.5760, 1.5030, 10.2775)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18155C #595C15
analogous
#15365C #18155C #3C155C
triadic
#18155C #5C1815 #155C18
tetradic
#18155C #5C1536 #595C15 #155C3C
square
#18155C #5C1536 #595C15 #155C3C
split-complementary
#18155C #5C3C15 #365C15
monochromatic
#060619 #0B0A2A #18155C #25208E #322CC0

Accessibility & contrast

On white

16.15
#18155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18155C
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18155C#FFFFFF#000000##FFFFFF
##18155C1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18155c;
/* rgb */ color: rgb(24, 21, 92);
/* oklch */ color: oklch(25.8% 0.121 275.6);
Tailwind
colors: {
  custom: {
    50: '#60538b',
    500: '#18155c',
    950: '#000000',
  },
}
SCSS
$custom: #18155c;
$custom-light: #60538b;
$custom-dark: #000000;
JSON
{
  "hex": "#18155c",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 242.535,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2582,
    "c": 0.12111,
    "h": 275.6
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18155C

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

Preview Lab → · Contrast checker → · Palette generator →

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