#18387E#18387E

#18387E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.2% C 0.125 H 263.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#18387E
RGBrgb(24, 56, 126)
HSLhsl(221, 68%, 29%)
HSVhsv(221, 81%, 49%)
CMYKcmyk(81%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.35, 15.83, -43.00)
CIE-LCHlch(25.35, 45.82, 290.21°)
OKLaboklab(36.2% -0.015 -0.1239)
OKLCHoklch(36.2% 0.125 263.1)
XYZxyz(5.5554, 4.5283, 20.3159)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18387E #7E5E18
analogous
#186B7E #18387E #2B187E
triadic
#18387E #7E1838 #387E18
tetradic
#18387E #7E186B #7E5E18 #187E2B
square
#18387E #7E186B #7E5E18 #187E2B
split-complementary
#18387E #7E2B18 #6B7E18
monochromatic
#050B1A #0E214B #18387E #224FB1 #376AD9

Accessibility & contrast

On white

11.02
#18387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#18387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18387E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18387E#FFFFFF#000000##FFFFFF
##18387E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014180
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18387e;
/* rgb */ color: rgb(24, 56, 126);
/* oklch */ color: oklch(36.2% 0.125 263.1);
Tailwind
colors: {
  custom: {
    50: '#666ea4',
    500: '#18387e',
    950: '#000000',
  },
}
SCSS
$custom: #18387e;
$custom-light: #666ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#18387e",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 221.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36198,
    "c": 0.12485,
    "h": 263.1
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18387E

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

Preview Lab → · Contrast checker → · Palette generator →

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