#18186A#18186A

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

Color values

HEX#18186A
RGBrgb(24, 24, 106)
HSLhsl(240, 63%, 25%)
HSVhsv(240, 77%, 42%)
CMYKcmyk(77.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(14.89, 30.05, -47.27)
CIE-LCHlch(14.89, 56.01, 302.45°)
OKLaboklab(27.9% 0.0073 -0.1367)
OKLCHoklch(27.9% 0.137 273.1)
XYZxyz(3.3040, 1.8877, 13.8231)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18186A #6A6A18
analogous
#18416A #18186A #41186A
triadic
#18186A #6A1818 #186A18
tetradic
#18186A #6A1841 #6A6A18 #186A41
square
#18186A #6A1841 #6A6A18 #186A41
split-complementary
#18186A #6A4118 #416A18
monochromatic
#060619 #0D0D38 #18186A #23239C #2F2FCE

Accessibility & contrast

On white

15.24
#18186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18186A
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18186A#FFFFFF#000000##FFFFFF
##18186A1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18186a;
/* rgb */ color: rgb(24, 24, 106);
/* oklch */ color: oklch(27.9% 0.137 273.1);
Tailwind
colors: {
  custom: {
    50: '#645696',
    500: '#18186a',
    950: '#000000',
  },
}
SCSS
$custom: #18186a;
$custom-light: #645696;
$custom-dark: #000000;
JSON
{
  "hex": "#18186a",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 240,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27901,
    "c": 0.13695,
    "h": 273.1
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#18186A
secondary
#A0A03E
accent
#E642E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18186A

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

Preview Lab → · Contrast checker → · Palette generator →

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