#18427F#18427F

#18427F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.113 H 258.2°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#18427F
RGBrgb(24, 66, 127)
HSLhsl(216, 68%, 30%)
HSVhsv(216, 81%, 50%)
CMYKcmyk(81.1%, 48%, 0%, 50.2%)
CIE-LABlab(28.44, 9.23, -38.63)
CIE-LCHlch(28.44, 39.72, 283.44°)
OKLaboklab(38.59% -0.0231 -0.1109)
OKLCHoklch(38.59% 0.113 258.2)
XYZxyz(6.1543, 5.6222, 20.8354)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18427F #7F5518
analogous
#18767F #18427F #22187F
triadic
#18427F #7F1842 #427F18
tetradic
#18427F #7F1876 #7F5518 #187F22
square
#18427F #7F1876 #7F5518 #187F22
split-complementary
#18427F #7F2218 #767F18
monochromatic
#050D1A #0E274C #18427F #225DB2 #387AD9

Accessibility & contrast

On white

9.88
#18427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#18427F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18427F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18427F#FFFFFF#000000##FFFFFF
##18427F1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214881
Deuteranopia (green-blind)
#063F7E
Tritanopia (blue-blind)
#00515A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #18427f;
/* rgb */ color: rgb(24, 66, 127);
/* oklch */ color: oklch(38.6% 0.113 258.2);
Tailwind
colors: {
  custom: {
    50: '#6675a4',
    500: '#18427f',
    950: '#000000',
  },
}
SCSS
$custom: #18427f;
$custom-light: #6675a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18427f",
  "rgb": {
    "r": 24,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 215.534,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.11328,
    "h": 258.2
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#18427F
secondary
#B3843F
accent
#A43DEB
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #18427F

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

Preview Lab → · Contrast checker → · Palette generator →

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