#18378E#18378E

#18378E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.149 H 264.9°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#18378E
RGBrgb(24, 55, 142)
HSLhsl(224, 71%, 33%)
HSVhsv(224, 83%, 56%)
CMYKcmyk(83.1%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.39, 23.06, -51.28)
CIE-LCHlch(26.39, 56.23, 294.21°)
OKLaboklab(37.4% -0.0133 -0.1483)
OKLCHoklch(37.4% 0.149 264.9)
XYZxyz(6.6236, 4.8788, 26.1785)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18378E #8E6F18
analogous
#18728E #18378E #34188E
triadic
#18378E #8E1837 #378E18
tetradic
#18378E #8E1872 #8E6F18 #188E34
square
#18378E #8E1872 #8E6F18 #188E34
split-complementary
#18378E #8E3418 #728E18
monochromatic
#060E25 #0F235A #18378E #214BC2 #416BDF

Accessibility & contrast

On white

10.63
#18378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#18378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18378E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18378E#FFFFFF#000000##FFFFFF
##18378E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #18378e;
/* rgb */ color: rgb(24, 55, 142);
/* oklch */ color: oklch(37.4% 0.149 264.9);
Tailwind
colors: {
  custom: {
    50: '#6b6db0',
    500: '#18378e',
    950: '#000000',
  },
}
SCSS
$custom: #18378e;
$custom-light: #6b6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#18378e",
  "rgb": {
    "r": 24,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 224.237,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.14889,
    "h": 264.9
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#18378E
secondary
#C09F42
accent
#BF3AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #18378E

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

Preview Lab → · Contrast checker → · Palette generator →

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