#18115D#18115D

#18115D is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.127 H 276.4°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#18115D
RGBrgb(24, 17, 93)
HSLhsl(246, 69%, 22%)
HSVhsv(246, 82%, 36%)
CMYKcmyk(74.2%, 81.7%, 0%, 63.5%)
CIE-LABlab(11.86, 29.65, -43.64)
CIE-LCHlch(11.86, 52.76, 304.19°)
OKLaboklab(25.31% 0.0141 -0.1262)
OKLCHoklch(25.31% 0.127 276.4)
XYZxyz(2.5523, 1.3852, 10.4867)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115D #565D11
analogous
#11305D #18115D #3E115D
triadic
#18115D #5D1811 #115D18
tetradic
#18115D #5D1130 #565D11 #115D3E
square
#18115D #5D1130 #565D11 #115D3E
split-complementary
#18115D #5D3E11 #305D11
monochromatic
#07051A #0B0829 #18115D #251A91 #3324C4

Accessibility & contrast

On white

16.44
#18115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#18115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18115D
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115D#FFFFFF#000000##FFFFFF
##18115D1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18115d;
/* rgb */ color: rgb(24, 17, 93);
/* oklch */ color: oklch(25.3% 0.127 276.4);
Tailwind
colors: {
  custom: {
    50: '#61518c',
    500: '#18115d',
    950: '#000000',
  },
}
SCSS
$custom: #18115d;
$custom-light: #61518c;
$custom-dark: #000000;
JSON
{
  "hex": "#18115d",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 245.526,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2531,
    "c": 0.12694,
    "h": 276.4
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#18115D
secondary
#8D9634
accent
#EC3CDC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18115D

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

Preview Lab → · Contrast checker → · Palette generator →

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