#18186F#18186F

#18186F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.144 H 272.5°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#18186F
RGBrgb(24, 24, 111)
HSLhsl(240, 64%, 26%)
HSVhsv(240, 78%, 44%)
CMYKcmyk(78.4%, 78.4%, 0%, 56.5%)
CIE-LABlab(15.46, 31.87, -49.58)
CIE-LCHlch(15.46, 58.94, 302.73°)
OKLaboklab(28.48% 0.0063 -0.1435)
OKLCHoklch(28.48% 0.144 272.5)
XYZxyz(3.5716, 1.9948, 15.2326)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18186F #6F6F18
analogous
#18446F #18186F #44186F
triadic
#18186F #6F1818 #186F18
tetradic
#18186F #6F1844 #6F6F18 #186F44
square
#18186F #6F1844 #6F6F18 #186F44
split-complementary
#18186F #6F4418 #446F18
monochromatic
#050519 #0D0D3D #18186F #2323A1 #2F2FD2

Accessibility & contrast

On white

15.01
#18186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#18186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18186F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18186F#FFFFFF#000000##FFFFFF
##18186F1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18186f;
/* rgb */ color: rgb(24, 24, 111);
/* oklch */ color: oklch(28.5% 0.144 272.5);
Tailwind
colors: {
  custom: {
    50: '#655699',
    500: '#18186f',
    950: '#000000',
  },
}
SCSS
$custom: #18186f;
$custom-light: #655699;
$custom-dark: #000000;
JSON
{
  "hex": "#18186f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 240,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28478,
    "c": 0.14364,
    "h": 272.5
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#18186F
secondary
#A5A53E
accent
#E740E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18186F

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

Preview Lab → · Contrast checker → · Palette generator →

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