#18187B#18187B

#18187B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.159 H 271.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#18187B
RGBrgb(24, 24, 123)
HSLhsl(240, 67%, 29%)
HSVhsv(240, 80%, 48%)
CMYKcmyk(80.5%, 80.5%, 0%, 51.8%)
CIE-LABlab(16.88, 36.13, -54.98)
CIE-LCHlch(16.88, 65.78, 303.31°)
OKLaboklab(29.9% 0.0039 -0.1592)
OKLCHoklch(29.9% 0.159 271.4)
XYZxyz(4.2773, 2.2770, 18.9491)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187B #7B7B18
analogous
#184A7B #18187B #4A187B
triadic
#18187B #7B1818 #187B18
tetradic
#18187B #7B184A #7B7B18 #187B4A
square
#18187B #7B184A #7B7B18 #187B4A
split-complementary
#18187B #7B4A18 #4A7B18
monochromatic
#05051A #0E0E48 #18187B #2222AE #3636D8

Accessibility & contrast

On white

14.43
#18187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18187B
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187B#FFFFFF#000000##FFFFFF
##18187B1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18187b;
/* rgb */ color: rgb(24, 24, 123);
/* oklch */ color: oklch(29.9% 0.159 271.4);
Tailwind
colors: {
  custom: {
    50: '#6957a2',
    500: '#18187b',
    950: '#000000',
  },
}
SCSS
$custom: #18187b;
$custom-light: #6957a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18187b",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.15921,
    "h": 271.4
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#18187B
secondary
#B0B03F
accent
#EA3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18187B

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

Preview Lab → · Contrast checker → · Palette generator →

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