#18397F#18397F

#18397F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.5% C 0.125 H 262.8°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#18397F
RGBrgb(24, 57, 127)
HSLhsl(221, 68%, 30%)
HSVhsv(221, 81%, 50%)
CMYKcmyk(81.1%, 55.1%, 0%, 50.2%)
CIE-LABlab(25.72, 15.53, -43.02)
CIE-LCHlch(25.72, 45.74, 289.85°)
OKLaboklab(36.51% -0.0156 -0.124)
OKLCHoklch(36.51% 0.125 262.8)
XYZxyz(5.6692, 4.6521, 20.6737)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18397F #7F5E18
analogous
#186D7F #18397F #2B187F
triadic
#18397F #7F1839 #397F18
tetradic
#18397F #7F186D #7F5E18 #187F2B
square
#18397F #7F186D #7F5E18 #187F2B
split-complementary
#18397F #7F2B18 #6D7F18
monochromatic
#050C1A #0E224C #18397F #2250B2 #386CD9

Accessibility & contrast

On white

10.88
#18397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#18397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18397F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18397F#FFFFFF#000000##FFFFFF
##18397F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034281
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #18397f;
/* rgb */ color: rgb(24, 57, 127);
/* oklch */ color: oklch(36.5% 0.125 262.8);
Tailwind
colors: {
  custom: {
    50: '#676ea5',
    500: '#18397f',
    950: '#000000',
  },
}
SCSS
$custom: #18397f;
$custom-light: #676ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#18397f",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 220.777,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.12498,
    "h": 262.8
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

primary
#18397F
secondary
#B38E3F
accent
#B33DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18397F

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

Preview Lab → · Contrast checker → · Palette generator →

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