#18337E#18337E

#18337E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.131 H 265.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#18337E
RGBrgb(24, 51, 126)
HSLhsl(224, 68%, 29%)
HSVhsv(224, 81%, 49%)
CMYKcmyk(81%, 59.5%, 0%, 50.6%)
CIE-LABlab(23.89, 19.37, -45.36)
CIE-LCHlch(23.89, 49.32, 293.12°)
OKLaboklab(35.1% -0.0112 -0.131)
OKLCHoklch(35.1% 0.131 265.1)
XYZxyz(5.3251, 4.0676, 20.2391)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337E #7E6318
analogous
#18667E #18337E #30187E
triadic
#18337E #7E1833 #337E18
tetradic
#18337E #7E1866 #7E6318 #187E30
square
#18337E #7E1866 #7E6318 #187E30
split-complementary
#18337E #7E3018 #667E18
monochromatic
#050A1A #0E1E4B #18337E #2248B1 #3762D9

Accessibility & contrast

On white

11.58
#18337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18337E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337E#FFFFFF#000000##FFFFFF
##18337E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18337e;
/* rgb */ color: rgb(24, 51, 126);
/* oklch */ color: oklch(35.1% 0.131 265.1);
Tailwind
colors: {
  custom: {
    50: '#676aa4',
    500: '#18337e',
    950: '#000000',
  },
}
SCSS
$custom: #18337e;
$custom-light: #676aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#18337e",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 224.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35102,
    "c": 0.13146,
    "h": 265.1
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18337E

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

Preview Lab → · Contrast checker → · Palette generator →

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