#18156B#18156B

#18156B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.141 H 273.5°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#18156B
RGBrgb(24, 21, 107)
HSLhsl(242, 67%, 25%)
HSVhsv(242, 80%, 42%)
CMYKcmyk(77.6%, 80.4%, 0%, 58%)
CIE-LABlab(14.35, 32.24, -48.80)
CIE-LCHlch(14.35, 58.49, 303.45°)
OKLaboklab(27.56% 0.0086 -0.1412)
OKLCHoklch(27.56% 0.141 273.5)
XYZxyz(3.2978, 1.7917, 14.0791)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18156B #686B15
analogous
#153D6B #18156B #43156B
triadic
#18156B #6B1815 #156B18
tetradic
#18156B #6B153D #686B15 #156B43
square
#18156B #6B153D #686B15 #156B43
split-complementary
#18156B #6B4315 #3D6B15
monochromatic
#06051A #0D0B38 #18156B #231F9E #2F29D1

Accessibility & contrast

On white

15.46
#18156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#18156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18156B
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18156B#FFFFFF#000000##FFFFFF
##18156B1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18156b;
/* rgb */ color: rgb(24, 21, 107);
/* oklch */ color: oklch(27.6% 0.141 273.5);
Tailwind
colors: {
  custom: {
    50: '#655496',
    500: '#18156b',
    950: '#000000',
  },
}
SCSS
$custom: #18156b;
$custom-light: #655496;
$custom-dark: #000000;
JSON
{
  "hex": "#18156b",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 242.093,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.14145,
    "h": 273.5
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18156B

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

Preview Lab → · Contrast checker → · Palette generator →

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