#18155E#18155E

#18155E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.124 H 275.3°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#18155E
RGBrgb(24, 21, 94)
HSLhsl(242, 63%, 23%)
HSVhsv(242, 78%, 37%)
CMYKcmyk(74.5%, 77.7%, 0%, 63.1%)
CIE-LABlab(12.85, 27.54, -42.68)
CIE-LCHlch(12.85, 50.79, 302.83°)
OKLaboklab(26.05% 0.0115 -0.1234)
OKLCHoklch(26.05% 0.124 275.3)
XYZxyz(2.6646, 1.5384, 10.7440)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18155E #5B5E15
analogous
#15365E #18155E #3D155E
triadic
#18155E #5E1815 #155E18
tetradic
#18155E #5E1536 #5B5E15 #155E3D
square
#18155E #5E1536 #5B5E15 #155E3D
split-complementary
#18155E #5E3D15 #365E15
monochromatic
#060619 #0B0A2C #18155E #252090 #322BC2

Accessibility & contrast

On white

16.06
#18155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#18155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18155E
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18155E#FFFFFF#000000##FFFFFF
##18155E1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18155e;
/* rgb */ color: rgb(24, 21, 94);
/* oklch */ color: oklch(26.0% 0.124 275.3);
Tailwind
colors: {
  custom: {
    50: '#61538d',
    500: '#18155e',
    950: '#000000',
  },
}
SCSS
$custom: #18155e;
$custom-light: #61538d;
$custom-dark: #000000;
JSON
{
  "hex": "#18155e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 242.466,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26046,
    "c": 0.1239,
    "h": 275.3
  },
  "luminance": 0.01539
}

Semantic roles & 50–950 ramp

primary
#18155E
secondary
#929539
accent
#E741E0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18155E

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

Preview Lab → · Contrast checker → · Palette generator →

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