#18397E#18397E

#18397E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.124 H 262.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#18397E
RGBrgb(24, 57, 126)
HSLhsl(221, 68%, 29%)
HSVhsv(221, 81%, 49%)
CMYKcmyk(81%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.64, 15.12, -42.52)
CIE-LCHlch(25.64, 45.13, 289.57°)
OKLaboklab(36.42% -0.0158 -0.1225)
OKLCHoklch(36.42% 0.124 262.7)
XYZxyz(5.6044, 4.6262, 20.3322)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18397E #7E5D18
analogous
#186C7E #18397E #2A187E
triadic
#18397E #7E1839 #397E18
tetradic
#18397E #7E186C #7E5D18 #187E2A
square
#18397E #7E186C #7E5D18 #187E2A
split-complementary
#18397E #7E2A18 #6C7E18
monochromatic
#050C1A #0E224B #18397E #2250B1 #376CD9

Accessibility & contrast

On white

10.91
#18397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18397E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18397E#FFFFFF#000000##FFFFFF
##18397E1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064280
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #18397e;
/* rgb */ color: rgb(24, 57, 126);
/* oklch */ color: oklch(36.4% 0.124 262.7);
Tailwind
colors: {
  custom: {
    50: '#666ea4',
    500: '#18397e',
    950: '#000000',
  },
}
SCSS
$custom: #18397e;
$custom-light: #666ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#18397e",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 220.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36423,
    "c": 0.12353,
    "h": 262.7
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18397E

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

Preview Lab → · Contrast checker → · Palette generator →

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