#18187C#18187C

#18187C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 271.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#18187C
RGBrgb(24, 24, 124)
HSLhsl(240, 68%, 29%)
HSVhsv(240, 81%, 49%)
CMYKcmyk(80.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.00, 36.48, -55.41)
CIE-LCHlch(17.00, 66.34, 303.35°)
OKLaboklab(30.02% 0.0037 -0.1604)
OKLCHoklch(30.02% 0.16 271.3)
XYZxyz(4.3402, 2.3022, 19.2805)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187C #7C7C18
analogous
#184A7C #18187C #4A187C
triadic
#18187C #7C1818 #187C18
tetradic
#18187C #7C184A #7C7C18 #187C4A
square
#18187C #7C184A #7C7C18 #187C4A
split-complementary
#18187C #7C4A18 #4A7C18
monochromatic
#05051A #0E0E49 #18187C #2222AF #3636D8

Accessibility & contrast

On white

14.38
#18187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18187C
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187C#FFFFFF#000000##FFFFFF
##18187C1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18187c;
/* rgb */ color: rgb(24, 24, 124);
/* oklch */ color: oklch(30.0% 0.160 271.3);
Tailwind
colors: {
  custom: {
    50: '#6957a3',
    500: '#18187c',
    950: '#000000',
  },
}
SCSS
$custom: #18187c;
$custom-light: #6957a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18187c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30017,
    "c": 0.16047,
    "h": 271.3
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#18187C
secondary
#B1B13F
accent
#EA3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18187C

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

Preview Lab → · Contrast checker → · Palette generator →

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