#181752#181752

#181752 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.104 H 276.6°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#181752
RGBrgb(24, 23, 82)
HSLhsl(241, 56%, 21%)
HSVhsv(241, 72%, 32%)
CMYKcmyk(70.7%, 72%, 0%, 67.8%)
CIE-LABlab(12.06, 21.65, -35.86)
CIE-LCHlch(12.06, 41.89, 301.12°)
OKLaboklab(25.09% 0.0119 -0.1034)
OKLCHoklch(25.09% 0.104 276.6)
XYZxyz(2.2056, 1.4160, 8.1381)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181752 #515217
analogous
#173352 #181752 #351752
triadic
#181752 #521817 #175218
tetradic
#181752 #521733 #515217 #175235
square
#181752 #521733 #515217 #175235
split-complementary
#181752 #523517 #335217
monochromatic
#070718 #0A0A22 #181752 #262482 #3432B2

Accessibility & contrast

On white

16.37
#181752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#181752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181752
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181752#FFFFFF#000000##FFFFFF
##1817521.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#002632
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181752;
/* rgb */ color: rgb(24, 23, 82);
/* oklch */ color: oklch(25.1% 0.104 276.6);
Tailwind
colors: {
  custom: {
    50: '#5e5483',
    500: '#181752',
    950: '#000000',
  },
}
SCSS
$custom: #181752;
$custom-light: #5e5483;
$custom-dark: #000000;
JSON
{
  "hex": "#181752",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 241.017,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25092,
    "c": 0.10412,
    "h": 276.6
  },
  "luminance": 0.01416
}

Semantic roles & 50–950 ramp

primary
#181752
secondary
#88893C
accent
#DF48DD
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181752

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

Preview Lab → · Contrast checker → · Palette generator →

#181752 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva