#18335B#18335B

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

Color values

HEX#18335B
RGBrgb(24, 51, 91)
HSLhsl(216, 58%, 23%)
HSVhsv(216, 74%, 36%)
CMYKcmyk(73.6%, 44%, 0%, 64.3%)
CIE-LABlab(21.27, 4.87, -27.03)
CIE-LCHlch(21.27, 27.46, 280.22°)
OKLaboklab(32.27% -0.0161 -0.0771)
OKLCHoklch(32.27% 0.079 258.2)
XYZxyz(3.4482, 3.3168, 10.3540)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335B #5B4018
analogous
#18545B #18335B #1F185B
triadic
#18335B #5B1833 #335B18
tetradic
#18335B #5B1854 #5B4018 #185B1F
square
#18335B #5B1854 #5B4018 #185B1F
split-complementary
#18335B #5B1F18 #545B18
monochromatic
#060E18 #0B182B #18335B #254E8B #3269BC

Accessibility & contrast

On white

12.62
#18335B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18335B
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335B#FFFFFF#000000##FFFFFF
##18335B1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20365D
Deuteranopia (green-blind)
#16305A
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18335b;
/* rgb */ color: rgb(24, 51, 91);
/* oklch */ color: oklch(32.3% 0.079 258.2);
Tailwind
colors: {
  custom: {
    50: '#5e6a89',
    500: '#18335b',
    950: '#000000',
  },
}
SCSS
$custom: #18335b;
$custom-light: #5e6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#18335b",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 215.821,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32267,
    "c": 0.07875,
    "h": 258.2
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#18335B
secondary
#92703D
accent
#A346E1
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #18335B

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

Preview Lab → · Contrast checker → · Palette generator →

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