#18335C#18335C

#18335C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.3% C 0.080 H 258.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#18335C
RGBrgb(24, 51, 92)
HSLhsl(216, 59%, 23%)
HSVhsv(216, 74%, 36%)
CMYKcmyk(73.9%, 44.6%, 0%, 63.9%)
CIE-LABlab(21.34, 5.28, -27.58)
CIE-LCHlch(21.34, 28.09, 280.85°)
OKLaboklab(32.34% -0.0159 -0.0787)
OKLCHoklch(32.34% 0.08 258.6)
XYZxyz(3.4916, 3.3342, 10.5827)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335C #5C4118
analogous
#18555C #18335C #1F185C
triadic
#18335C #5C1833 #335C18
tetradic
#18335C #5C1855 #5C4118 #185C1F
square
#18335C #5C1855 #5C4118 #185C1F
split-complementary
#18335C #5C1F18 #555C18
monochromatic
#060D18 #0B182B #18335C #254E8D #3169BD

Accessibility & contrast

On white

12.60
#18335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18335C
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335C#FFFFFF#000000##FFFFFF
##18335C1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375E
Deuteranopia (green-blind)
#15305B
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18335c;
/* rgb */ color: rgb(24, 51, 92);
/* oklch */ color: oklch(32.3% 0.080 258.6);
Tailwind
colors: {
  custom: {
    50: '#5e6a8a',
    500: '#18335c',
    950: '#000000',
  },
}
SCSS
$custom: #18335c;
$custom-light: #5e6a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#18335c",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 216.176,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32338,
    "c": 0.0803,
    "h": 258.6
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#18335C
secondary
#93713D
accent
#A446E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18335C

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

Preview Lab → · Contrast checker → · Palette generator →

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