#18478B#18478B

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

Color values

HEX#18478B
RGBrgb(24, 71, 139)
HSLhsl(215, 71%, 32%)
HSVhsv(215, 83%, 55%)
CMYKcmyk(82.7%, 48.9%, 0%, 45.5%)
CIE-LABlab(30.79, 10.73, -42.29)
CIE-LCHlch(30.79, 43.63, 284.24°)
OKLaboklab(40.67% -0.0252 -0.1215)
OKLCHoklch(40.67% 0.124 258.3)
XYZxyz(7.2884, 6.5639, 25.3039)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18478B #8B5C18
analogous
#18818B #18478B #22188B
triadic
#18478B #8B1847 #478B18
tetradic
#18478B #8B1881 #8B5C18 #188B22
square
#18478B #8B1881 #8B5C18 #188B22
split-complementary
#18478B #8B2218 #818B18
monochromatic
#061223 #0F2C57 #18478B #2162BF #3F80DE

Accessibility & contrast

On white

9.08
#18478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18478B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18478B#FFFFFF#000000##FFFFFF
##18478B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #18478b;
/* rgb */ color: rgb(24, 71, 139);
/* oklch */ color: oklch(40.7% 0.124 258.3);
Tailwind
colors: {
  custom: {
    50: '#6979ad',
    500: '#18478b',
    950: '#000000',
  },
}
SCSS
$custom: #18478b;
$custom-light: #6979ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18478b",
  "rgb": {
    "r": 24,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 215.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40666,
    "c": 0.12412,
    "h": 258.3
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#18478B
secondary
#BE8B40
accent
#A43AED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #18478B

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

Preview Lab → · Contrast checker → · Palette generator →

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