#18397D#18397D

#18397D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.3% C 0.122 H 262.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#18397D
RGBrgb(24, 57, 125)
HSLhsl(220, 68%, 29%)
HSVhsv(220, 81%, 49%)
CMYKcmyk(80.8%, 54.4%, 0%, 51%)
CIE-LABlab(25.56, 14.71, -42.01)
CIE-LCHlch(25.56, 44.51, 289.29°)
OKLaboklab(36.34% -0.0159 -0.121)
OKLCHoklch(36.34% 0.122 262.5)
XYZxyz(5.5402, 4.6005, 19.9941)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18397D #7D5C18
analogous
#186C7D #18397D #2A187D
triadic
#18397D #7D1839 #397D18
tetradic
#18397D #7D186C #7D5C18 #187D2A
square
#18397D #7D186C #7D5C18 #187D2A
split-complementary
#18397D #7D2A18 #6C7D18
monochromatic
#050C1A #0E224A #18397D #2250B0 #376CD9

Accessibility & contrast

On white

10.94
#18397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#18397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18397D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18397D#FFFFFF#000000##FFFFFF
##18397D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08417F
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #18397d;
/* rgb */ color: rgb(24, 57, 125);
/* oklch */ color: oklch(36.3% 0.122 262.5);
Tailwind
colors: {
  custom: {
    50: '#666ea3',
    500: '#18397d',
    950: '#000000',
  },
}
SCSS
$custom: #18397d;
$custom-light: #666ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#18397d",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 220.396,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3634,
    "c": 0.12208,
    "h": 262.5
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#18397D
secondary
#B28C3F
accent
#B23DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18397D

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

Preview Lab → · Contrast checker → · Palette generator →

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