#18159E#18159E

#18159E is a dark, highly saturated blue. Relative luminance 0.032; OKLCH L 33.9% C 0.204 H 269.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#18159E
RGBrgb(24, 21, 158)
HSLhsl(241, 77%, 35%)
HSVhsv(241, 87%, 62%)
CMYKcmyk(84.8%, 86.7%, 0%, 38%)
CIE-LABlab(20.82, 49.00, -70.31)
CIE-LCHlch(20.82, 85.70, 304.87°)
OKLaboklab(33.91% -0.0032 -0.2035)
OKLCHoklch(33.91% 0.204 269.1)
XYZxyz(6.8143, 3.1983, 32.5993)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18159E #9B9E15
analogous
#15569E #18159E #5D159E
triadic
#18159E #9E1815 #159E18
tetradic
#18159E #9E1556 #9B9E15 #159E5D
square
#18159E #9E1556 #9B9E15 #159E5D
split-complementary
#18159E #9E5D15 #569E15
monochromatic
#080732 #100E68 #18159E #201CD4 #4A47E7

Accessibility & contrast

On white

12.81
#18159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18159E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18159E#FFFFFF#000000##FFFFFF
##18159E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A2
Deuteranopia (green-blind)
#002B9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18159e;
/* rgb */ color: rgb(24, 21, 158);
/* oklch */ color: oklch(33.9% 0.204 269.1);
Tailwind
colors: {
  custom: {
    50: '#7358bc',
    500: '#18159e',
    950: '#000000',
  },
}
SCSS
$custom: #18159e;
$custom-light: #7358bc;
$custom-dark: #000000;
JSON
{
  "hex": "#18159e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 241.314,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.33906,
    "c": 0.20351,
    "h": 269.1
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#18159E
secondary
#C5C747
accent
#F335EF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #18159E

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

Preview Lab → · Contrast checker → · Palette generator →

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