#18387B#18387B

#18387B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 35.9% C 0.120 H 262.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#18387B
RGBrgb(24, 56, 123)
HSLhsl(221, 67%, 29%)
HSVhsv(221, 80%, 48%)
CMYKcmyk(80.5%, 54.5%, 0%, 51.8%)
CIE-LABlab(25.11, 14.59, -41.49)
CIE-LCHlch(25.11, 43.98, 289.37°)
OKLaboklab(35.95% -0.0153 -0.1195)
OKLCHoklch(35.95% 0.12 262.7)
XYZxyz(5.3647, 4.4520, 19.3116)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18387B #7B5B18
analogous
#186A7B #18387B #2A187B
triadic
#18387B #7B1838 #387B18
tetradic
#18387B #7B186A #7B5B18 #187B2A
square
#18387B #7B186A #7B5B18 #187B2A
split-complementary
#18387B #7B2A18 #6A7B18
monochromatic
#050C1A #0E2148 #18387B #224FAE #366AD8

Accessibility & contrast

On white

11.11
#18387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#18387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18387B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18387B#FFFFFF#000000##FFFFFF
##18387B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18387b;
/* rgb */ color: rgb(24, 56, 123);
/* oklch */ color: oklch(35.9% 0.120 262.7);
Tailwind
colors: {
  custom: {
    50: '#666ea2',
    500: '#18387b',
    950: '#000000',
  },
}
SCSS
$custom: #18387b;
$custom-light: #666ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#18387b",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 220.606,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35947,
    "c": 0.12047,
    "h": 262.7
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#18387B
secondary
#B08B3F
accent
#B23EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18387B

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

Preview Lab → · Contrast checker → · Palette generator →

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