#18336F#18336F

#18336F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.109 H 263.4°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#18336F
RGBrgb(24, 51, 111)
HSLhsl(221, 64%, 26%)
HSVhsv(221, 78%, 44%)
CMYKcmyk(78.4%, 54.1%, 0%, 56.5%)
CIE-LABlab(22.69, 13.17, -37.77)
CIE-LCHlch(22.69, 40.00, 289.23°)
OKLaboklab(33.81% -0.0125 -0.1087)
OKLCHoklch(33.81% 0.109 263.4)
XYZxyz(4.4287, 3.7091, 15.5184)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18336F #6F5418
analogous
#185F6F #18336F #29186F
triadic
#18336F #6F1833 #336F18
tetradic
#18336F #6F185F #6F5418 #186F29
square
#18336F #6F185F #6F5418 #186F29
split-complementary
#18336F #6F2918 #5F6F18
monochromatic
#050C19 #0D1C3D #18336F #234AA1 #2F62D2

Accessibility & contrast

On white

12.06
#18336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18336F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18336F#FFFFFF#000000##FFFFFF
##18336F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18336f;
/* rgb */ color: rgb(24, 51, 111);
/* oklch */ color: oklch(33.8% 0.109 263.4);
Tailwind
colors: {
  custom: {
    50: '#636a99',
    500: '#18336f',
    950: '#000000',
  },
}
SCSS
$custom: #18336f;
$custom-light: #636a99;
$custom-dark: #000000;
JSON
{
  "hex": "#18336f",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 221.379,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33808,
    "c": 0.10938,
    "h": 263.4
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#18336F
secondary
#A5853E
accent
#B440E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #18336F

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

Preview Lab → · Contrast checker → · Palette generator →

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