#18158F#18158F

#18158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.186 H 270.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#18158F
RGBrgb(24, 21, 143)
HSLhsl(241, 74%, 32%)
HSVhsv(241, 85%, 56%)
CMYKcmyk(83.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.86, 44.33, -64.32)
CIE-LCHlch(18.86, 78.11, 304.58°)
OKLaboklab(32% 0.0002 -0.1861)
OKLCHoklch(32% 0.186 270)
XYZxyz(5.6011, 2.7130, 26.2097)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18158F #8C8F15
analogous
#154F8F #18158F #55158F
triadic
#18158F #8F1815 #158F18
tetradic
#18158F #8F154F #8C8F15 #158F55
square
#18158F #8F154F #8C8F15 #158F55
split-complementary
#18158F #8F5515 #4F8F15
monochromatic
#060524 #0F0D5A #18158F #211DC4 #403CE2

Accessibility & contrast

On white

13.61
#18158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18158F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18158F#FFFFFF#000000##FFFFFF
##18158F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18158f;
/* rgb */ color: rgb(24, 21, 143);
/* oklch */ color: oklch(32.0% 0.186 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#18158f',
    950: '#000000',
  },
}
SCSS
$custom: #18158f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18158f",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 241.475,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31996,
    "c": 0.18615,
    "h": 270
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#18158F
secondary
#BFC23E
accent
#F137EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18158F

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

Preview Lab → · Contrast checker → · Palette generator →

#18158F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva