#18387C#18387C

#18387C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.0% C 0.122 H 262.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#18387C
RGBrgb(24, 56, 124)
HSLhsl(221, 68%, 29%)
HSVhsv(221, 81%, 49%)
CMYKcmyk(80.6%, 54.8%, 0%, 51.4%)
CIE-LABlab(25.19, 15.00, -41.99)
CIE-LCHlch(25.19, 44.59, 289.66°)
OKLaboklab(36.03% -0.0152 -0.121)
OKLCHoklch(36.03% 0.122 262.8)
XYZxyz(5.4276, 4.4771, 19.6430)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18387C #7C5C18
analogous
#186A7C #18387C #2A187C
triadic
#18387C #7C1838 #387C18
tetradic
#18387C #7C186A #7C5C18 #187C2A
square
#18387C #7C186A #7C5C18 #187C2A
split-complementary
#18387C #7C2A18 #6A7C18
monochromatic
#050C1A #0E2149 #18387C #224FAF #366AD8

Accessibility & contrast

On white

11.08
#18387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18387C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18387C#FFFFFF#000000##FFFFFF
##18387C1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417E
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18387c;
/* rgb */ color: rgb(24, 56, 124);
/* oklch */ color: oklch(36.0% 0.122 262.8);
Tailwind
colors: {
  custom: {
    50: '#666ea2',
    500: '#18387c',
    950: '#000000',
  },
}
SCSS
$custom: #18387c;
$custom-light: #666ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#18387c",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 220.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3603,
    "c": 0.12194,
    "h": 262.8
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#18387C
secondary
#B18C3F
accent
#B33DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18387C

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

Preview Lab → · Contrast checker → · Palette generator →

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