#18156A#18156A

#18156A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.140 H 273.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#18156A
RGBrgb(24, 21, 106)
HSLhsl(242, 67%, 25%)
HSVhsv(242, 80%, 42%)
CMYKcmyk(77.4%, 80.2%, 0%, 58.4%)
CIE-LABlab(14.24, 31.89, -48.34)
CIE-LCHlch(14.24, 57.91, 303.41°)
OKLaboklab(27.44% 0.0089 -0.1399)
OKLCHoklch(27.44% 0.14 273.6)
XYZxyz(3.2455, 1.7708, 13.8036)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18156A #676A15
analogous
#153C6A #18156A #43156A
triadic
#18156A #6A1815 #156A18
tetradic
#18156A #6A153C #676A15 #156A43
square
#18156A #6A153C #676A15 #156A43
split-complementary
#18156A #6A4315 #3C6A15
monochromatic
#06051A #0C0B37 #18156A #241F9D #2F29D0

Accessibility & contrast

On white

15.51
#18156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#18156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18156A
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18156A#FFFFFF#000000##FFFFFF
##18156A1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18156a;
/* rgb */ color: rgb(24, 21, 106);
/* oklch */ color: oklch(27.4% 0.140 273.6);
Tailwind
colors: {
  custom: {
    50: '#645496',
    500: '#18156a',
    950: '#000000',
  },
}
SCSS
$custom: #18156a;
$custom-light: #645496;
$custom-dark: #000000;
JSON
{
  "hex": "#18156a",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 242.118,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2744,
    "c": 0.14014,
    "h": 273.6
  },
  "luminance": 0.01771
}

Semantic roles & 50–950 ramp

primary
#18156A
secondary
#9DA13A
accent
#EA3EE4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18156A

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

Preview Lab → · Contrast checker → · Palette generator →

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