#18115F#18115F

#18115F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.130 H 276.0°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#18115F
RGBrgb(24, 17, 95)
HSLhsl(245, 70%, 22%)
HSVhsv(245, 82%, 37%)
CMYKcmyk(74.7%, 82.1%, 0%, 62.7%)
CIE-LABlab(12.10, 30.35, -44.59)
CIE-LCHlch(12.10, 53.94, 304.24°)
OKLaboklab(25.55% 0.0136 -0.1289)
OKLCHoklch(25.55% 0.13 276)
XYZxyz(2.6420, 1.4211, 10.9593)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115F #585F11
analogous
#11315F #18115F #3F115F
triadic
#18115F #5F1811 #115F18
tetradic
#18115F #5F1131 #585F11 #115F3F
square
#18115F #5F1131 #585F11 #115F3F
split-complementary
#18115F #5F3F11 #315F11
monochromatic
#07051A #0B082B #18115F #251A93 #3224C7

Accessibility & contrast

On white

16.35
#18115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18115F
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115F#FFFFFF#000000##FFFFFF
##18115F1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18115f;
/* rgb */ color: rgb(24, 17, 95);
/* oklch */ color: oklch(25.5% 0.130 276.0);
Tailwind
colors: {
  custom: {
    50: '#62518d',
    500: '#18115f',
    950: '#000000',
  },
}
SCSS
$custom: #18115f;
$custom-light: #62518d;
$custom-dark: #000000;
JSON
{
  "hex": "#18115f",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 245.385,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25548,
    "c": 0.12962,
    "h": 276
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#18115F
secondary
#8F9834
accent
#EC3BDD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18115F

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

Preview Lab → · Contrast checker → · Palette generator →

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