#18335F#18335F

#18335F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.6% C 0.085 H 259.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#18335F
RGBrgb(24, 51, 95)
HSLhsl(217, 60%, 23%)
HSVhsv(217, 75%, 37%)
CMYKcmyk(74.7%, 46.3%, 0%, 62.7%)
CIE-LABlab(21.53, 6.52, -29.24)
CIE-LCHlch(21.53, 29.96, 282.58°)
OKLaboklab(32.56% -0.0152 -0.0836)
OKLCHoklch(32.56% 0.085 259.7)
XYZxyz(3.6253, 3.3877, 11.2871)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335F #5F4418
analogous
#18565F #18335F #20185F
triadic
#18335F #5F1833 #335F18
tetradic
#18335F #5F1856 #5F4418 #185F20
square
#18335F #5F1856 #5F4418 #185F20
split-complementary
#18335F #5F2018 #565F18
monochromatic
#060D18 #0C192E #18335F #244D90 #3167C1

Accessibility & contrast

On white

12.52
#18335F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#18335F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18335F
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335F#FFFFFF#000000##FFFFFF
##18335F1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3761
Deuteranopia (green-blind)
#11315E
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18335f;
/* rgb */ color: rgb(24, 51, 95);
/* oklch */ color: oklch(32.6% 0.085 259.7);
Tailwind
colors: {
  custom: {
    50: '#5f6a8d',
    500: '#18335f',
    950: '#000000',
  },
}
SCSS
$custom: #18335f;
$custom-light: #5f6a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18335f",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 217.183,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.08494,
    "h": 259.7
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#18335F
secondary
#95743D
accent
#A745E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18335F

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

Preview Lab → · Contrast checker → · Palette generator →

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