#18417F#18417F

#18417F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.115 H 258.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#18417F
RGBrgb(24, 65, 127)
HSLhsl(216, 68%, 30%)
HSVhsv(216, 81%, 50%)
CMYKcmyk(81.1%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.13, 9.92, -39.13)
CIE-LCHlch(28.13, 40.37, 284.23°)
OKLaboklab(38.35% -0.0222 -0.1124)
OKLCHoklch(38.35% 0.115 258.8)
XYZxyz(6.0963, 5.5064, 20.8161)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18417F #7F5618
analogous
#18747F #18417F #23187F
triadic
#18417F #7F1841 #417F18
tetradic
#18417F #7F1874 #7F5618 #187F23
square
#18417F #7F1874 #7F5618 #187F23
split-complementary
#18417F #7F2318 #747F18
monochromatic
#050D1A #0E274C #18417F #225BB2 #3878D9

Accessibility & contrast

On white

9.99
#18417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#18417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18417F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18417F#FFFFFF#000000##FFFFFF
##18417F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#023E7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #18417f;
/* rgb */ color: rgb(24, 65, 127);
/* oklch */ color: oklch(38.4% 0.115 258.8);
Tailwind
colors: {
  custom: {
    50: '#6675a4',
    500: '#18417f',
    950: '#000000',
  },
}
SCSS
$custom: #18417f;
$custom-light: #6675a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18417f",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 216.117,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3835,
    "c": 0.11455,
    "h": 258.8
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#18417F
secondary
#B3853F
accent
#A63DEB
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #18417F

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

Preview Lab → · Contrast checker → · Palette generator →

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