#18397C#18397C

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

Color values

HEX#18397C
RGBrgb(24, 57, 124)
HSLhsl(220, 68%, 29%)
HSVhsv(220, 81%, 49%)
CMYKcmyk(80.6%, 54%, 0%, 51.4%)
CIE-LABlab(25.49, 14.29, -41.51)
CIE-LCHlch(25.49, 43.90, 289.00°)
OKLaboklab(36.26% -0.016 -0.1195)
OKLCHoklch(36.26% 0.121 262.4)
XYZxyz(5.4766, 4.5750, 19.6593)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18397C #7C5B18
analogous
#186B7C #18397C #29187C
triadic
#18397C #7C1839 #397C18
tetradic
#18397C #7C186B #7C5B18 #187C29
square
#18397C #7C186B #7C5B18 #187C29
split-complementary
#18397C #7C2918 #6B7C18
monochromatic
#050C1A #0E2149 #18397C #2251AF #366CD8

Accessibility & contrast

On white

10.96
#18397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18397C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18397C#FFFFFF#000000##FFFFFF
##18397C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18397c;
/* rgb */ color: rgb(24, 57, 124);
/* oklch */ color: oklch(36.3% 0.121 262.4);
Tailwind
colors: {
  custom: {
    50: '#666ea2',
    500: '#18397c',
    950: '#000000',
  },
}
SCSS
$custom: #18397c;
$custom-light: #666ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#18397c",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 220.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36257,
    "c": 0.12061,
    "h": 262.4
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#18397C
secondary
#B18B3F
accent
#B13DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18397C

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

Preview Lab → · Contrast checker → · Palette generator →

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