#18156F#18156F

#18156F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.147 H 273.0°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#18156F
RGBrgb(24, 21, 111)
HSLhsl(242, 68%, 26%)
HSVhsv(242, 81%, 44%)
CMYKcmyk(78.4%, 81.1%, 0%, 56.5%)
CIE-LABlab(14.83, 33.65, -50.62)
CIE-LCHlch(14.83, 60.79, 303.62°)
OKLaboklab(28.04% 0.0077 -0.1465)
OKLCHoklch(28.04% 0.147 273)
XYZxyz(3.5131, 1.8779, 15.2132)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18156F #6C6F15
analogous
#153F6F #18156F #45156F
triadic
#18156F #6F1815 #156F18
tetradic
#18156F #6F153F #6C6F15 #156F45
square
#18156F #6F153F #6C6F15 #156F45
split-complementary
#18156F #6F4515 #3F6F15
monochromatic
#06051A #0D0B3C #18156F #231FA2 #2E28D6

Accessibility & contrast

On white

15.27
#18156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18156F
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18156F#FFFFFF#000000##FFFFFF
##18156F1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18156f;
/* rgb */ color: rgb(24, 21, 111);
/* oklch */ color: oklch(28.0% 0.147 273.0);
Tailwind
colors: {
  custom: {
    50: '#665499',
    500: '#18156f',
    950: '#000000',
  },
}
SCSS
$custom: #18156f;
$custom-light: #665499;
$custom-dark: #000000;
JSON
{
  "hex": "#18156f",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 242,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28036,
    "c": 0.14668,
    "h": 273
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#18156F
secondary
#A2A53A
accent
#EB3DE5
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18156F

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

Preview Lab → · Contrast checker → · Palette generator →

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