#18115A#18115A

#18115A is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 25.0% C 0.123 H 277.0°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#18115A
RGBrgb(24, 17, 90)
HSLhsl(246, 68%, 21%)
HSVhsv(246, 81%, 35%)
CMYKcmyk(73.3%, 81.1%, 0%, 64.7%)
CIE-LABlab(11.51, 28.58, -42.21)
CIE-LCHlch(11.51, 50.97, 304.10°)
OKLaboklab(24.96% 0.0149 -0.122)
OKLCHoklch(24.96% 0.123 277)
XYZxyz(2.4220, 1.3331, 9.8005)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115A #535A11
analogous
#112E5A #18115A #3C115A
triadic
#18115A #5A1811 #115A18
tetradic
#18115A #5A112E #535A11 #115A3C
square
#18115A #5A112E #535A11 #115A3C
split-complementary
#18115A #5A3C11 #2E5A11
monochromatic
#07051A #0A0727 #18115A #261B8D #3324C1

Accessibility & contrast

On white

16.58
#18115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18115A
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115A#FFFFFF#000000##FFFFFF
##18115A1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215C
Deuteranopia (green-blind)
#001B59
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18115a;
/* rgb */ color: rgb(24, 17, 90);
/* oklch */ color: oklch(25.0% 0.123 277.0);
Tailwind
colors: {
  custom: {
    50: '#60508a',
    500: '#18115a',
    950: '#000000',
  },
}
SCSS
$custom: #18115a;
$custom-light: #60508a;
$custom-dark: #000000;
JSON
{
  "hex": "#18115a",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 245.753,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24955,
    "c": 0.12288,
    "h": 277
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#18115A
secondary
#8A9334
accent
#EB3DDA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18115A

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

Preview Lab → · Contrast checker → · Palette generator →

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