#18387D#18387D

#18387D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.1% C 0.123 H 263.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#18387D
RGBrgb(24, 56, 125)
HSLhsl(221, 68%, 29%)
HSVhsv(221, 81%, 49%)
CMYKcmyk(80.8%, 55.2%, 0%, 51%)
CIE-LABlab(25.27, 15.41, -42.50)
CIE-LCHlch(25.27, 45.20, 289.94°)
OKLaboklab(36.11% -0.0151 -0.1225)
OKLCHoklch(36.11% 0.123 263)
XYZxyz(5.4912, 4.5026, 19.9777)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18387D #7D5D18
analogous
#186B7D #18387D #2B187D
triadic
#18387D #7D1838 #387D18
tetradic
#18387D #7D186B #7D5D18 #187D2B
square
#18387D #7D186B #7D5D18 #187D2B
split-complementary
#18387D #7D2B18 #6B7D18
monochromatic
#050C1A #0E214A #18387D #224FB0 #376AD9

Accessibility & contrast

On white

11.05
#18387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#18387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18387D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18387D#FFFFFF#000000##FFFFFF
##18387D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03417F
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18387d;
/* rgb */ color: rgb(24, 56, 125);
/* oklch */ color: oklch(36.1% 0.123 263.0);
Tailwind
colors: {
  custom: {
    50: '#666ea3',
    500: '#18387d',
    950: '#000000',
  },
}
SCSS
$custom: #18387d;
$custom-light: #666ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#18387d",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 220.99,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.12339,
    "h": 263
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#18387D
secondary
#B28D3F
accent
#B43DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18387D

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

Preview Lab → · Contrast checker → · Palette generator →

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