#18156E#18156E

#18156E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.145 H 273.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#18156E
RGBrgb(24, 21, 110)
HSLhsl(242, 68%, 26%)
HSVhsv(242, 81%, 43%)
CMYKcmyk(78.2%, 80.9%, 0%, 56.9%)
CIE-LABlab(14.71, 33.30, -50.17)
CIE-LCHlch(14.71, 60.22, 303.58°)
OKLaboklab(27.92% 0.0079 -0.1452)
OKLCHoklch(27.92% 0.145 273.1)
XYZxyz(3.4584, 1.8560, 14.9248)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18156E #6B6E15
analogous
#153F6E #18156E #44156E
triadic
#18156E #6E1815 #156E18
tetradic
#18156E #6E153F #6B6E15 #156E44
square
#18156E #6E153F #6B6E15 #156E44
split-complementary
#18156E #6E4415 #3F6E15
monochromatic
#06051A #0D0B3B #18156E #231FA1 #2E29D5

Accessibility & contrast

On white

15.32
#18156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#18156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18156E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18156E#FFFFFF#000000##FFFFFF
##18156E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18156e;
/* rgb */ color: rgb(24, 21, 110);
/* oklch */ color: oklch(27.9% 0.145 273.1);
Tailwind
colors: {
  custom: {
    50: '#655499',
    500: '#18156e',
    950: '#000000',
  },
}
SCSS
$custom: #18156e;
$custom-light: #655499;
$custom-dark: #000000;
JSON
{
  "hex": "#18156e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 242.022,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27916,
    "c": 0.14539,
    "h": 273.1
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18156E

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

Preview Lab → · Contrast checker → · Palette generator →

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