#18336E#18336E

#18336E is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.108 H 263.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#18336E
RGBrgb(24, 51, 110)
HSLhsl(221, 64%, 26%)
HSVhsv(221, 78%, 43%)
CMYKcmyk(78.2%, 53.6%, 0%, 56.9%)
CIE-LABlab(22.61, 12.76, -37.25)
CIE-LCHlch(22.61, 39.38, 288.91°)
OKLaboklab(33.73% -0.0126 -0.1071)
OKLCHoklch(33.73% 0.108 263.3)
XYZxyz(4.3740, 3.6872, 15.2300)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18336E #6E5318
analogous
#185E6E #18336E #28186E
triadic
#18336E #6E1833 #336E18
tetradic
#18336E #6E185E #6E5318 #186E28
square
#18336E #6E185E #6E5318 #186E28
split-complementary
#18336E #6E2818 #5E6E18
monochromatic
#050C19 #0D1C3C #18336E #234AA0 #2F62D2

Accessibility & contrast

On white

12.09
#18336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#18336E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18336E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18336E#FFFFFF#000000##FFFFFF
##18336E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A70
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18336e;
/* rgb */ color: rgb(24, 51, 110);
/* oklch */ color: oklch(33.7% 0.108 263.3);
Tailwind
colors: {
  custom: {
    50: '#636a98',
    500: '#18336e',
    950: '#000000',
  },
}
SCSS
$custom: #18336e;
$custom-light: #636a98;
$custom-dark: #000000;
JSON
{
  "hex": "#18336e",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 221.163,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33725,
    "c": 0.10788,
    "h": 263.3
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#18336E
secondary
#A4843E
accent
#B341E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #18336E

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

Preview Lab → · Contrast checker → · Palette generator →

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