#18115B#18115B

#18115B is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.1% C 0.124 H 276.8°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#18115B
RGBrgb(24, 17, 91)
HSLhsl(246, 69%, 21%)
HSVhsv(246, 81%, 36%)
CMYKcmyk(73.6%, 81.3%, 0%, 64.3%)
CIE-LABlab(11.62, 28.94, -42.69)
CIE-LCHlch(11.62, 51.57, 304.13°)
OKLaboklab(25.07% 0.0147 -0.1234)
OKLCHoklch(25.07% 0.124 276.8)
XYZxyz(2.4648, 1.3502, 10.0262)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115B #545B11
analogous
#112F5B #18115B #3D115B
triadic
#18115B #5B1811 #115B18
tetradic
#18115B #5B112F #545B11 #115B3D
square
#18115B #5B112F #545B11 #115B3D
split-complementary
#18115B #5B3D11 #2F5B11
monochromatic
#07051A #0A0727 #18115B #261B8F #3324C2

Accessibility & contrast

On white

16.54
#18115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18115B
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115B#FFFFFF#000000##FFFFFF
##18115B1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18115b;
/* rgb */ color: rgb(24, 17, 91);
/* oklch */ color: oklch(25.1% 0.124 276.8);
Tailwind
colors: {
  custom: {
    50: '#61508a',
    500: '#18115b',
    950: '#000000',
  },
}
SCSS
$custom: #18115b;
$custom-light: #61508a;
$custom-dark: #000000;
JSON
{
  "hex": "#18115b",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 245.676,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25073,
    "c": 0.12424,
    "h": 276.8
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#18115B
secondary
#8B9434
accent
#EB3CDB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18115B

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

Preview Lab → · Contrast checker → · Palette generator →

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