#18407F#18407F

#18407F is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.116 H 259.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#18407F
RGBrgb(24, 64, 127)
HSLhsl(217, 68%, 30%)
HSVhsv(217, 81%, 50%)
CMYKcmyk(81.1%, 49.6%, 0%, 50.2%)
CIE-LABlab(27.83, 10.62, -39.62)
CIE-LCHlch(27.83, 41.02, 285.01°)
OKLaboklab(38.12% -0.0214 -0.1138)
OKLCHoklch(38.12% 0.116 259.4)
XYZxyz(6.0395, 5.3926, 20.7971)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18407F #7F5718
analogous
#18747F #18407F #24187F
triadic
#18407F #7F1840 #407F18
tetradic
#18407F #7F1874 #7F5718 #187F24
square
#18407F #7F1874 #7F5718 #187F24
split-complementary
#18407F #7F2418 #747F18
monochromatic
#050D1A #0E264C #18407F #225AB2 #3877D9

Accessibility & contrast

On white

10.10
#18407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#18407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18407F
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18407F#FFFFFF#000000##FFFFFF
##18407F1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4781
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #18407f;
/* rgb */ color: rgb(24, 64, 127);
/* oklch */ color: oklch(38.1% 0.116 259.4);
Tailwind
colors: {
  custom: {
    50: '#6674a5',
    500: '#18407f',
    950: '#000000',
  },
}
SCSS
$custom: #18407f;
$custom-light: #6674a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18407f",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 216.699,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38115,
    "c": 0.11583,
    "h": 259.4
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#18407F
secondary
#B3863F
accent
#A73DEB
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #18407F

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

Preview Lab → · Contrast checker → · Palette generator →

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