#18336D#18336D

#18336D is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.6% C 0.106 H 263.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#18336D
RGBrgb(24, 51, 109)
HSLhsl(221, 64%, 26%)
HSVhsv(221, 78%, 43%)
CMYKcmyk(78%, 53.2%, 0%, 57.3%)
CIE-LABlab(22.53, 12.34, -36.73)
CIE-LCHlch(22.53, 38.75, 288.57°)
OKLaboklab(33.64% -0.0127 -0.1056)
OKLCHoklch(33.64% 0.106 263.1)
XYZxyz(4.3198, 3.6655, 14.9449)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18336D #6D5218
analogous
#185D6D #18336D #27186D
triadic
#18336D #6D1833 #336D18
tetradic
#18336D #6D185D #6D5218 #186D27
square
#18336D #6D185D #6D5218 #186D27
split-complementary
#18336D #6D2718 #5D6D18
monochromatic
#060C19 #0D1C3B #18336D #234A9F #2E62D1

Accessibility & contrast

On white

12.12
#18336D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#18336D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18336D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18336D#FFFFFF#000000##FFFFFF
##18336D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3A6F
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#00414A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18336d;
/* rgb */ color: rgb(24, 51, 109);
/* oklch */ color: oklch(33.6% 0.106 263.1);
Tailwind
colors: {
  custom: {
    50: '#626a97',
    500: '#18336d',
    950: '#000000',
  },
}
SCSS
$custom: #18336d;
$custom-light: #626a97;
$custom-dark: #000000;
JSON
{
  "hex": "#18336d",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 220.941,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.10638,
    "h": 263.1
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#18336D
secondary
#A3833E
accent
#B241E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18336D

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

Preview Lab → · Contrast checker → · Palette generator →

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