#18337F#18337F

#18337F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.133 H 265.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#18337F
RGBrgb(24, 51, 127)
HSLhsl(224, 68%, 30%)
HSVhsv(224, 81%, 50%)
CMYKcmyk(81.1%, 59.8%, 0%, 50.2%)
CIE-LABlab(23.98, 19.78, -45.85)
CIE-LCHlch(23.98, 49.93, 293.33°)
OKLaboklab(35.19% -0.0111 -0.1324)
OKLCHoklch(35.19% 0.133 265.2)
XYZxyz(5.3899, 4.0935, 20.5806)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337F #7F6418
analogous
#18677F #18337F #31187F
triadic
#18337F #7F1833 #337F18
tetradic
#18337F #7F1867 #7F6418 #187F31
square
#18337F #7F1867 #7F6418 #187F31
split-complementary
#18337F #7F3118 #677F18
monochromatic
#050A1A #0E1E4C #18337F #2248B2 #3862D9

Accessibility & contrast

On white

11.55
#18337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#18337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18337F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337F#FFFFFF#000000##FFFFFF
##18337F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #18337f;
/* rgb */ color: rgb(24, 51, 127);
/* oklch */ color: oklch(35.2% 0.133 265.2);
Tailwind
colors: {
  custom: {
    50: '#676aa5',
    500: '#18337f',
    950: '#000000',
  },
}
SCSS
$custom: #18337f;
$custom-light: #676aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#18337f",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 224.272,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35192,
    "c": 0.1329,
    "h": 265.2
  },
  "luminance": 0.04094
}

Semantic roles & 50–950 ramp

primary
#18337F
secondary
#B3953F
accent
#BD3DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18337F

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

Preview Lab → · Contrast checker → · Palette generator →

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