#18337B#18337B

#18337B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.8% C 0.127 H 264.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#18337B
RGBrgb(24, 51, 123)
HSLhsl(224, 67%, 29%)
HSVhsv(224, 80%, 48%)
CMYKcmyk(80.5%, 58.5%, 0%, 51.8%)
CIE-LABlab(23.64, 18.14, -43.87)
CIE-LCHlch(23.64, 47.47, 292.46°)
OKLaboklab(34.84% -0.0114 -0.1266)
OKLCHoklch(34.84% 0.127 264.9)
XYZxyz(5.1344, 3.9913, 19.2349)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337B #7B6018
analogous
#18657B #18337B #2F187B
triadic
#18337B #7B1833 #337B18
tetradic
#18337B #7B1865 #7B6018 #187B2F
square
#18337B #7B1865 #7B6018 #187B2F
split-complementary
#18337B #7B2F18 #657B18
monochromatic
#050B1A #0E1E48 #18337B #2248AE #3662D8

Accessibility & contrast

On white

11.68
#18337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#18337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18337B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337B#FFFFFF#000000##FFFFFF
##18337B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #18337b;
/* rgb */ color: rgb(24, 51, 123);
/* oklch */ color: oklch(34.8% 0.127 264.9);
Tailwind
colors: {
  custom: {
    50: '#666aa2',
    500: '#18337b',
    950: '#000000',
  },
}
SCSS
$custom: #18337b;
$custom-light: #666aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#18337b",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 223.636,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34835,
    "c": 0.12712,
    "h": 264.9
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#18337B
secondary
#B0913F
accent
#BB3EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18337B

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

Preview Lab → · Contrast checker → · Palette generator →

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