#18336B#18336B

#18336B is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.103 H 262.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#18336B
RGBrgb(24, 51, 107)
HSLhsl(220, 63%, 26%)
HSVhsv(220, 78%, 42%)
CMYKcmyk(77.6%, 52.3%, 0%, 58%)
CIE-LABlab(22.38, 11.51, -35.68)
CIE-LCHlch(22.38, 37.49, 287.88°)
OKLaboklab(33.48% -0.013 -0.1025)
OKLCHoklch(33.48% 0.103 262.8)
XYZxyz(4.2134, 3.6229, 14.3843)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18336B #6B5018
analogous
#185C6B #18336B #26186B
triadic
#18336B #6B1833 #336B18
tetradic
#18336B #6B185C #6B5018 #186B26
square
#18336B #6B185C #6B5018 #186B26
split-complementary
#18336B #6B2618 #5C6B18
monochromatic
#060C19 #0D1B39 #18336B #234B9D #2E63CF

Accessibility & contrast

On white

12.18
#18336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#18336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18336B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18336B#FFFFFF#000000##FFFFFF
##18336B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123A6D
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18336b;
/* rgb */ color: rgb(24, 51, 107);
/* oklch */ color: oklch(33.5% 0.103 262.8);
Tailwind
colors: {
  custom: {
    50: '#626a96',
    500: '#18336b',
    950: '#000000',
  },
}
SCSS
$custom: #18336b;
$custom-light: #626a96;
$custom-dark: #000000;
JSON
{
  "hex": "#18336b",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 220.482,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33481,
    "c": 0.10334,
    "h": 262.8
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#18336B
secondary
#A1813E
accent
#B141E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18336B

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

Preview Lab → · Contrast checker → · Palette generator →

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