#18417D#18417D

#18417D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.2% C 0.112 H 258.3°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#18417D
RGBrgb(24, 65, 125)
HSLhsl(216, 68%, 29%)
HSVhsv(216, 81%, 49%)
CMYKcmyk(80.8%, 48%, 0%, 51%)
CIE-LABlab(27.99, 9.10, -38.10)
CIE-LCHlch(27.99, 39.17, 283.43°)
OKLaboklab(38.2% -0.0226 -0.1093)
OKLCHoklch(38.2% 0.112 258.3)
XYZxyz(5.9673, 5.4548, 20.1364)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18417D #7D5418
analogous
#18747D #18417D #22187D
triadic
#18417D #7D1841 #417D18
tetradic
#18417D #7D1874 #7D5418 #187D22
square
#18417D #7D1874 #7D5418 #187D22
split-complementary
#18417D #7D2218 #747D18
monochromatic
#050D1A #0E264A #18417D #225CB0 #3778D9

Accessibility & contrast

On white

10.04
#18417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#18417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18417D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18417D#FFFFFF#000000##FFFFFF
##18417D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#073E7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #18417d;
/* rgb */ color: rgb(24, 65, 125);
/* oklch */ color: oklch(38.2% 0.112 258.3);
Tailwind
colors: {
  custom: {
    50: '#6675a3',
    500: '#18417d',
    950: '#000000',
  },
}
SCSS
$custom: #18417d;
$custom-light: #6675a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18417d",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 215.644,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38199,
    "c": 0.11166,
    "h": 258.3
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#18417D
secondary
#B2833F
accent
#A43DEB
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #18417D

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

Preview Lab → · Contrast checker → · Palette generator →

#18417D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva