#18335D#18335D

#18335D is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.4% C 0.082 H 259.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#18335D
RGBrgb(24, 51, 93)
HSLhsl(217, 59%, 23%)
HSVhsv(217, 74%, 36%)
CMYKcmyk(74.2%, 45.2%, 0%, 63.5%)
CIE-LABlab(21.40, 5.70, -28.14)
CIE-LCHlch(21.40, 28.71, 281.45°)
OKLaboklab(32.41% -0.0156 -0.0803)
OKLCHoklch(32.41% 0.082 259)
XYZxyz(3.5356, 3.3518, 10.8144)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335D #5D4218
analogous
#18555D #18335D #20185D
triadic
#18335D #5D1833 #335D18
tetradic
#18335D #5D1855 #5D4218 #185D20
square
#18335D #5D1855 #5D4218 #185D20
split-complementary
#18335D #5D2018 #555D18
monochromatic
#060D18 #0B182C #18335D #254E8E #3168BE

Accessibility & contrast

On white

12.57
#18335D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#18335D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18335D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335D#FFFFFF#000000##FFFFFF
##18335D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F375F
Deuteranopia (green-blind)
#14305C
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18335d;
/* rgb */ color: rgb(24, 51, 93);
/* oklch */ color: oklch(32.4% 0.082 259.0);
Tailwind
colors: {
  custom: {
    50: '#5e6a8b',
    500: '#18335d',
    950: '#000000',
  },
}
SCSS
$custom: #18335d;
$custom-light: #5e6a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18335d",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 216.522,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3241,
    "c": 0.08184,
    "h": 259
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#18335D
secondary
#93723D
accent
#A546E2
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18335D

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

Preview Lab → · Contrast checker → · Palette generator →

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