#18478C#18478C

#18478C is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.7% C 0.126 H 258.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#18478C
RGBrgb(24, 71, 140)
HSLhsl(216, 71%, 32%)
HSVhsv(216, 83%, 55%)
CMYKcmyk(82.9%, 49.3%, 0%, 45.1%)
CIE-LABlab(30.86, 11.14, -42.79)
CIE-LCHlch(30.86, 44.22, 284.59°)
OKLaboklab(40.74% -0.025 -0.123)
OKLCHoklch(40.74% 0.126 258.5)
XYZxyz(7.3618, 6.5932, 25.6905)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18478C #8C5D18
analogous
#18818C #18478C #23188C
triadic
#18478C #8C1847 #478C18
tetradic
#18478C #8C1881 #8C5D18 #188C23
square
#18478C #8C1881 #8C5D18 #188C23
split-complementary
#18478C #8C2318 #818C18
monochromatic
#061224 #0F2D58 #18478C #2161C0 #4080DE

Accessibility & contrast

On white

9.06
#18478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#18478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18478C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18478C#FFFFFF#000000##FFFFFF
##18478C1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8F
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #18478c;
/* rgb */ color: rgb(24, 71, 140);
/* oklch */ color: oklch(40.7% 0.126 258.5);
Tailwind
colors: {
  custom: {
    50: '#6979ae',
    500: '#18478c',
    950: '#000000',
  },
}
SCSS
$custom: #18478c;
$custom-light: #6979ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18478c",
  "rgb": {
    "r": 24,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 215.69,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40742,
    "c": 0.12553,
    "h": 258.5
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#18478C
secondary
#BF8C41
accent
#A53AED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #18478C

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

Preview Lab → · Contrast checker → · Palette generator →

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