#18187D#18187D

#18187D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.162 H 271.2°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#18187D
RGBrgb(24, 24, 125)
HSLhsl(240, 68%, 29%)
HSVhsv(240, 81%, 49%)
CMYKcmyk(80.8%, 80.8%, 0%, 51%)
CIE-LABlab(17.12, 36.82, -55.85)
CIE-LCHlch(17.12, 66.90, 303.40°)
OKLaboklab(30.14% 0.0034 -0.1617)
OKLCHoklch(30.14% 0.162 271.2)
XYZxyz(4.4037, 2.3276, 19.6152)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187D #7D7D18
analogous
#184B7D #18187D #4B187D
triadic
#18187D #7D1818 #187D18
tetradic
#18187D #7D184B #7D7D18 #187D4B
square
#18187D #7D184B #7D7D18 #187D4B
split-complementary
#18187D #7D4B18 #4B7D18
monochromatic
#05051A #0E0E4A #18187D #2222B0 #3737D9

Accessibility & contrast

On white

14.33
#18187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18187D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187D#FFFFFF#000000##FFFFFF
##18187D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18187d;
/* rgb */ color: rgb(24, 24, 125);
/* oklch */ color: oklch(30.1% 0.162 271.2);
Tailwind
colors: {
  custom: {
    50: '#6957a4',
    500: '#18187d',
    950: '#000000',
  },
}
SCSS
$custom: #18187d;
$custom-light: #6957a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18187d",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30137,
    "c": 0.16174,
    "h": 271.2
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#18187D
secondary
#B2B23F
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18187D

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

Preview Lab → · Contrast checker → · Palette generator →

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