#18115C#18115C

#18115C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.2% C 0.126 H 276.6°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#18115C
RGBrgb(24, 17, 92)
HSLhsl(246, 69%, 21%)
HSVhsv(246, 82%, 36%)
CMYKcmyk(73.9%, 81.5%, 0%, 63.9%)
CIE-LABlab(11.74, 29.29, -43.17)
CIE-LCHlch(11.74, 52.17, 304.16°)
OKLaboklab(25.19% 0.0144 -0.1248)
OKLCHoklch(25.19% 0.126 276.6)
XYZxyz(2.5083, 1.3676, 10.2549)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115C #555C11
analogous
#11305C #18115C #3E115C
triadic
#18115C #5C1811 #115C18
tetradic
#18115C #5C1130 #555C11 #115C3E
square
#18115C #5C1130 #555C11 #115C3E
split-complementary
#18115C #5C3E11 #305C11
monochromatic
#07051A #0B0728 #18115C #251B90 #3324C3

Accessibility & contrast

On white

16.49
#18115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#18115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18115C
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115C#FFFFFF#000000##FFFFFF
##18115C1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18115c;
/* rgb */ color: rgb(24, 17, 92);
/* oklch */ color: oklch(25.2% 0.126 276.6);
Tailwind
colors: {
  custom: {
    50: '#61508b',
    500: '#18115c',
    950: '#000000',
  },
}
SCSS
$custom: #18115c;
$custom-light: #61508b;
$custom-dark: #000000;
JSON
{
  "hex": "#18115c",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 245.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25191,
    "c": 0.12559,
    "h": 276.6
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#18115C
secondary
#8C9534
accent
#EC3CDB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18115C

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

Preview Lab → · Contrast checker → · Palette generator →

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