#18378B#18378B

#18378B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.145 H 264.7°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#18378B
RGBrgb(24, 55, 139)
HSLhsl(224, 71%, 32%)
HSVhsv(224, 83%, 55%)
CMYKcmyk(82.7%, 60.4%, 0%, 45.5%)
CIE-LABlab(26.13, 21.85, -49.85)
CIE-LCHlch(26.13, 54.42, 293.67°)
OKLaboklab(37.12% -0.0134 -0.1441)
OKLCHoklch(37.12% 0.145 264.7)
XYZxyz(6.4014, 4.7899, 25.0082)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18378B #8B6C18
analogous
#18718B #18378B #33188B
triadic
#18378B #8B1837 #378B18
tetradic
#18378B #8B1871 #8B6C18 #188B33
square
#18378B #8B1871 #8B6C18 #188B33
split-complementary
#18378B #8B3318 #718B18
monochromatic
#060E23 #0F2257 #18378B #214CBF #3F6ADE

Accessibility & contrast

On white

10.72
#18378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#18378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18378B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18378B#FFFFFF#000000##FFFFFF
##18378B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #18378b;
/* rgb */ color: rgb(24, 55, 139);
/* oklch */ color: oklch(37.1% 0.145 264.7);
Tailwind
colors: {
  custom: {
    50: '#6a6dae',
    500: '#18378b',
    950: '#000000',
  },
}
SCSS
$custom: #18378b;
$custom-light: #6a6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#18378b",
  "rgb": {
    "r": 24,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 223.826,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37122,
    "c": 0.14471,
    "h": 264.7
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#18378B
secondary
#BE9C40
accent
#BD3AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #18378B

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

Preview Lab → · Contrast checker → · Palette generator →

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