#18156C#18156C

#18156C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.143 H 273.4°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#18156C
RGBrgb(24, 21, 108)
HSLhsl(242, 67%, 25%)
HSVhsv(242, 81%, 42%)
CMYKcmyk(77.8%, 80.6%, 0%, 57.6%)
CIE-LABlab(14.47, 32.60, -49.26)
CIE-LCHlch(14.47, 59.07, 303.50°)
OKLaboklab(27.68% 0.0084 -0.1425)
OKLCHoklch(27.68% 0.143 273.4)
XYZxyz(3.3507, 1.8129, 14.3578)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18156C #696C15
analogous
#153D6C #18156C #43156C
triadic
#18156C #6C1815 #156C18
tetradic
#18156C #6C153D #696C15 #156C43
square
#18156C #6C153D #696C15 #156C43
split-complementary
#18156C #6C4315 #3D6C15
monochromatic
#06051A #0D0B39 #18156C #231F9F #2F29D2

Accessibility & contrast

On white

15.41
#18156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18156C
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18156C#FFFFFF#000000##FFFFFF
##18156C1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18156c;
/* rgb */ color: rgb(24, 21, 108);
/* oklch */ color: oklch(27.7% 0.143 273.4);
Tailwind
colors: {
  custom: {
    50: '#655497',
    500: '#18156c',
    950: '#000000',
  },
}
SCSS
$custom: #18156c;
$custom-light: #655497;
$custom-dark: #000000;
JSON
{
  "hex": "#18156c",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 242.069,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27677,
    "c": 0.14277,
    "h": 273.4
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#18156C
secondary
#9FA33A
accent
#EA3DE4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #18156C

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

Preview Lab → · Contrast checker → · Palette generator →

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