#18337D#18337D

#18337D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.130 H 265.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#18337D
RGBrgb(24, 51, 125)
HSLhsl(224, 68%, 29%)
HSVhsv(224, 81%, 49%)
CMYKcmyk(80.8%, 59.2%, 0%, 51%)
CIE-LABlab(23.81, 18.96, -44.86)
CIE-LCHlch(23.81, 48.71, 292.91°)
OKLaboklab(35.01% -0.0112 -0.1295)
OKLCHoklch(35.01% 0.13 265)
XYZxyz(5.2609, 4.0419, 19.9010)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337D #7D6218
analogous
#18667D #18337D #2F187D
triadic
#18337D #7D1833 #337D18
tetradic
#18337D #7D1866 #7D6218 #187D2F
square
#18337D #7D1866 #7D6218 #187D2F
split-complementary
#18337D #7D2F18 #667D18
monochromatic
#050A1A #0E1E4A #18337D #2248B0 #3762D9

Accessibility & contrast

On white

11.61
#18337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#18337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18337D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337D#FFFFFF#000000##FFFFFF
##18337D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #18337d;
/* rgb */ color: rgb(24, 51, 125);
/* oklch */ color: oklch(35.0% 0.130 265.0);
Tailwind
colors: {
  custom: {
    50: '#676aa3',
    500: '#18337d',
    950: '#000000',
  },
}
SCSS
$custom: #18337d;
$custom-light: #676aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#18337d",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 223.96,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35013,
    "c": 0.13002,
    "h": 265
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#18337D
secondary
#B2933F
accent
#BC3DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18337D

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

Preview Lab → · Contrast checker → · Palette generator →

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