#18387F#18387F

#18387F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.3% C 0.126 H 263.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#18387F
RGBrgb(24, 56, 127)
HSLhsl(221, 68%, 30%)
HSVhsv(221, 81%, 50%)
CMYKcmyk(81.1%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.43, 16.24, -43.50)
CIE-LCHlch(25.43, 46.43, 290.47°)
OKLaboklab(36.28% -0.0149 -0.1254)
OKLCHoklch(36.28% 0.126 263.2)
XYZxyz(5.6203, 4.5542, 20.6574)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18387F #7F5F18
analogous
#186C7F #18387F #2B187F
triadic
#18387F #7F1838 #387F18
tetradic
#18387F #7F186C #7F5F18 #187F2B
square
#18387F #7F186C #7F5F18 #187F2B
split-complementary
#18387F #7F2B18 #6C7F18
monochromatic
#050B1A #0E214C #18387F #224FB2 #386AD9

Accessibility & contrast

On white

10.99
#18387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18387F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18387F#FFFFFF#000000##FFFFFF
##18387F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18387f;
/* rgb */ color: rgb(24, 56, 127);
/* oklch */ color: oklch(36.3% 0.126 263.2);
Tailwind
colors: {
  custom: {
    50: '#676ea5',
    500: '#18387f',
    950: '#000000',
  },
}
SCSS
$custom: #18387f;
$custom-light: #676ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#18387f",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 221.359,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.1263,
    "h": 263.2
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#18387F
secondary
#B38F3F
accent
#B53DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18387F

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

Preview Lab → · Contrast checker → · Palette generator →

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