#18478E#18478E

#18478E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 40.9% C 0.128 H 258.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#18478E
RGBrgb(24, 71, 142)
HSLhsl(216, 71%, 33%)
HSVhsv(216, 83%, 56%)
CMYKcmyk(83.1%, 50%, 0%, 44.3%)
CIE-LABlab(31.00, 11.96, -43.79)
CIE-LCHlch(31.00, 45.39, 285.28°)
OKLaboklab(40.89% -0.0247 -0.126)
OKLCHoklch(40.89% 0.128 258.9)
XYZxyz(7.5106, 6.6527, 26.4742)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18478E #8E5F18
analogous
#18828E #18478E #24188E
triadic
#18478E #8E1847 #478E18
tetradic
#18478E #8E1882 #8E5F18 #188E24
square
#18478E #8E1882 #8E5F18 #188E24
split-complementary
#18478E #8E2418 #828E18
monochromatic
#061325 #0F2D5A #18478E #2161C2 #4180DF

Accessibility & contrast

On white

9.01
#18478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#18478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18478E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18478E#FFFFFF#000000##FFFFFF
##18478E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F91
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #18478e;
/* rgb */ color: rgb(24, 71, 142);
/* oklch */ color: oklch(40.9% 0.128 258.9);
Tailwind
colors: {
  custom: {
    50: '#6a79b0',
    500: '#18478e',
    950: '#000000',
  },
}
SCSS
$custom: #18478e;
$custom-light: #6a79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18478e",
  "rgb": {
    "r": 24,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 216.102,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40895,
    "c": 0.12836,
    "h": 258.9
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#18478E
secondary
#C08E42
accent
#A63AEE
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #18478E

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

Preview Lab → · Contrast checker → · Palette generator →

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