#18337A#18337A

#18337A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.7% C 0.126 H 264.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#18337A
RGBrgb(24, 51, 122)
HSLhsl(223, 67%, 29%)
HSVhsv(223, 80%, 48%)
CMYKcmyk(80.3%, 58.2%, 0%, 52.2%)
CIE-LABlab(23.56, 17.73, -43.37)
CIE-LCHlch(23.56, 46.85, 292.23°)
OKLaboklab(34.75% -0.0114 -0.1251)
OKLCHoklch(34.75% 0.126 264.8)
XYZxyz(5.0721, 3.9664, 18.9069)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337A #7A5F18
analogous
#18647A #18337A #2E187A
triadic
#18337A #7A1833 #337A18
tetradic
#18337A #7A1864 #7A5F18 #187A2E
square
#18337A #7A1864 #7A5F18 #187A2E
split-complementary
#18337A #7A2E18 #647A18
monochromatic
#050B1A #0E1E47 #18337A #2248AD #3562D7

Accessibility & contrast

On white

11.71
#18337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#18337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18337A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337A#FFFFFF#000000##FFFFFF
##18337A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #18337a;
/* rgb */ color: rgb(24, 51, 122);
/* oklch */ color: oklch(34.7% 0.126 264.8);
Tailwind
colors: {
  custom: {
    50: '#666aa1',
    500: '#18337a',
    950: '#000000',
  },
}
SCSS
$custom: #18337a;
$custom-light: #666aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#18337a",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 223.469,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.12566,
    "h": 264.8
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18337A

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

Preview Lab → · Contrast checker → · Palette generator →

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