#18335A#18335A

#18335A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.2% C 0.077 H 257.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#18335A
RGBrgb(24, 51, 90)
HSLhsl(215, 58%, 22%)
HSVhsv(215, 73%, 35%)
CMYKcmyk(73.3%, 43.3%, 0%, 64.7%)
CIE-LABlab(21.21, 4.46, -26.47)
CIE-LCHlch(21.21, 26.84, 279.56°)
OKLaboklab(32.2% -0.0164 -0.0754)
OKLCHoklch(32.2% 0.077 257.7)
XYZxyz(3.4053, 3.2997, 10.1283)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335A #5A3F18
analogous
#18545A #18335A #1E185A
triadic
#18335A #5A1833 #335A18
tetradic
#18335A #5A1854 #5A3F18 #185A1E
square
#18335A #5A1854 #5A3F18 #185A1E
split-complementary
#18335A #5A1E18 #545A18
monochromatic
#060E18 #0B182A #18335A #254E8A #326ABB

Accessibility & contrast

On white

12.65
#18335A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#18335A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18335A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335A#FFFFFF#000000##FFFFFF
##18335A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21365C
Deuteranopia (green-blind)
#173059
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18335a;
/* rgb */ color: rgb(24, 51, 90);
/* oklch */ color: oklch(32.2% 0.077 257.7);
Tailwind
colors: {
  custom: {
    50: '#5e6a89',
    500: '#18335a',
    950: '#000000',
  },
}
SCSS
$custom: #18335a;
$custom-light: #5e6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#18335a",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 90
  },
  "hsl": {
    "h": 215.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.0772,
    "h": 257.7
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#18335A
secondary
#916E3D
accent
#A247E1
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #18335A

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

Preview Lab → · Contrast checker → · Palette generator →

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