#18336C#18336C

#18336C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.105 H 262.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#18336C
RGBrgb(24, 51, 108)
HSLhsl(221, 64%, 26%)
HSVhsv(221, 78%, 42%)
CMYKcmyk(77.8%, 52.8%, 0%, 57.6%)
CIE-LABlab(22.46, 11.93, -36.21)
CIE-LCHlch(22.46, 38.12, 288.23°)
OKLaboklab(33.56% -0.0129 -0.1041)
OKLCHoklch(33.56% 0.105 262.9)
XYZxyz(4.2663, 3.6441, 14.6630)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18336C #6C5118
analogous
#185D6C #18336C #27186C
triadic
#18336C #6C1833 #336C18
tetradic
#18336C #6C185D #6C5118 #186C27
square
#18336C #6C185D #6C5118 #186C27
split-complementary
#18336C #6C2718 #5D6C18
monochromatic
#060C19 #0D1B3A #18336C #234B9E #2E62D0

Accessibility & contrast

On white

12.15
#18336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18336C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18336C#FFFFFF#000000##FFFFFF
##18336C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113A6E
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#00414A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18336c;
/* rgb */ color: rgb(24, 51, 108);
/* oklch */ color: oklch(33.6% 0.105 262.9);
Tailwind
colors: {
  custom: {
    50: '#626a96',
    500: '#18336c',
    950: '#000000',
  },
}
SCSS
$custom: #18336c;
$custom-light: #626a96;
$custom-dark: #000000;
JSON
{
  "hex": "#18336c",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 220.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.10486,
    "h": 262.9
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#18336C
secondary
#A2823E
accent
#B141E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18336C

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

Preview Lab → · Contrast checker → · Palette generator →

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