#18337C#18337C

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

Color values

HEX#18337C
RGBrgb(24, 51, 124)
HSLhsl(224, 68%, 29%)
HSVhsv(224, 81%, 49%)
CMYKcmyk(80.6%, 58.9%, 0%, 51.4%)
CIE-LABlab(23.73, 18.55, -44.37)
CIE-LCHlch(23.73, 48.09, 292.69°)
OKLaboklab(34.92% -0.0113 -0.1281)
OKLCHoklch(34.92% 0.129 265)
XYZxyz(5.1973, 4.0165, 19.5662)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18337C #7C6118
analogous
#18657C #18337C #2F187C
triadic
#18337C #7C1833 #337C18
tetradic
#18337C #7C1865 #7C6118 #187C2F
square
#18337C #7C1865 #7C6118 #187C2F
split-complementary
#18337C #7C2F18 #657C18
monochromatic
#050B1A #0E1E49 #18337C #2248AF #3662D8

Accessibility & contrast

On white

11.64
#18337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18337C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18337C#FFFFFF#000000##FFFFFF
##18337C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #18337c;
/* rgb */ color: rgb(24, 51, 124);
/* oklch */ color: oklch(34.9% 0.129 265.0);
Tailwind
colors: {
  custom: {
    50: '#666aa3',
    500: '#18337c',
    950: '#000000',
  },
}
SCSS
$custom: #18337c;
$custom-light: #666aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#18337c",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 223.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.12857,
    "h": 265
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#18337C
secondary
#B1923F
accent
#BC3DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18337C

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

Preview Lab → · Contrast checker → · Palette generator →

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