#18478A#18478A

#18478A is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.6% C 0.123 H 258.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#18478A
RGBrgb(24, 71, 138)
HSLhsl(215, 70%, 32%)
HSVhsv(215, 83%, 54%)
CMYKcmyk(82.6%, 48.6%, 0%, 45.9%)
CIE-LABlab(30.72, 10.32, -41.78)
CIE-LCHlch(30.72, 43.04, 283.87°)
OKLaboklab(40.59% -0.0253 -0.12)
OKLCHoklch(40.59% 0.123 258.1)
XYZxyz(7.2157, 6.5348, 24.9209)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18478A #8A5B18
analogous
#18808A #18478A #22188A
triadic
#18478A #8A1847 #478A18
tetradic
#18478A #8A1880 #8A5B18 #188A22
square
#18478A #8A1880 #8A5B18 #188A22
split-complementary
#18478A #8A2218 #808A18
monochromatic
#061122 #0F2C56 #18478A #2162BE #3F80DE

Accessibility & contrast

On white

9.10
#18478A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#18478A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18478A
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18478A#FFFFFF#000000##FFFFFF
##18478A1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8D
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #18478a;
/* rgb */ color: rgb(24, 71, 138);
/* oklch */ color: oklch(40.6% 0.123 258.1);
Tailwind
colors: {
  custom: {
    50: '#6979ad',
    500: '#18478a',
    950: '#000000',
  },
}
SCSS
$custom: #18478a;
$custom-light: #6979ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18478a",
  "rgb": {
    "r": 24,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 215.263,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40591,
    "c": 0.1227,
    "h": 258.1
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#18478A
secondary
#BD8A40
accent
#A43BED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #18478A

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

Preview Lab → · Contrast checker → · Palette generator →

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