#181751#181751

#181751 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.103 H 276.7°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#181751
RGBrgb(24, 23, 81)
HSLhsl(241, 56%, 20%)
HSVhsv(241, 72%, 32%)
CMYKcmyk(70.4%, 71.6%, 0%, 68.2%)
CIE-LABlab(11.96, 21.26, -35.34)
CIE-LCHlch(11.96, 41.24, 301.03°)
OKLaboklab(24.99% 0.012 -0.1019)
OKLCHoklch(24.99% 0.103 276.7)
XYZxyz(2.1678, 1.4009, 7.9391)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181751 #505117
analogous
#173351 #181751 #351751
triadic
#181751 #511817 #175118
tetradic
#181751 #511733 #505117 #175135
square
#181751 #511733 #505117 #175135
split-complementary
#181751 #513517 #335117
monochromatic
#070718 #0A0921 #181751 #262581 #3432B0

Accessibility & contrast

On white

16.40
#181751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181751
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181751#FFFFFF#000000##FFFFFF
##1817511.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#001D50
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181751;
/* rgb */ color: rgb(24, 23, 81);
/* oklch */ color: oklch(25.0% 0.103 276.7);
Tailwind
colors: {
  custom: {
    50: '#5d5482',
    500: '#181751',
    950: '#000000',
  },
}
SCSS
$custom: #181751;
$custom-light: #5d5482;
$custom-dark: #000000;
JSON
{
  "hex": "#181751",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 241.034,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24988,
    "c": 0.10262,
    "h": 276.7
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#181751
secondary
#87883C
accent
#DF49DC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020A
muted
#79787C

Preview Lab

Preview with #181751

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

Preview Lab → · Contrast checker → · Palette generator →

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