#18397B#18397B

#18397B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.119 H 262.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#18397B
RGBrgb(24, 57, 123)
HSLhsl(220, 67%, 29%)
HSVhsv(220, 80%, 48%)
CMYKcmyk(80.5%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.41, 13.88, -41.00)
CIE-LCHlch(25.41, 43.29, 288.70°)
OKLaboklab(36.18% -0.0161 -0.1181)
OKLCHoklch(36.18% 0.119 262.2)
XYZxyz(5.4137, 4.5499, 19.3279)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18397B #7B5A18
analogous
#186B7B #18397B #29187B
triadic
#18397B #7B1839 #397B18
tetradic
#18397B #7B186B #7B5A18 #187B29
square
#18397B #7B186B #7B5A18 #187B29
split-complementary
#18397B #7B2918 #6B7B18
monochromatic
#050C1A #0E2148 #18397B #2251AE #366CD8

Accessibility & contrast

On white

10.99
#18397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#18397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18397B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18397B#FFFFFF#000000##FFFFFF
##18397B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18397b;
/* rgb */ color: rgb(24, 57, 123);
/* oklch */ color: oklch(36.2% 0.119 262.2);
Tailwind
colors: {
  custom: {
    50: '#666ea2',
    500: '#18397b',
    950: '#000000',
  },
}
SCSS
$custom: #18397b;
$custom-light: #666ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#18397b",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 220,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.11915,
    "h": 262.2
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#18397B
secondary
#B08A3F
accent
#B13EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #18397B

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

Preview Lab → · Contrast checker → · Palette generator →

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