#181742#181742

#181742 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.079 H 279.4°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#181742
RGBrgb(24, 23, 66)
HSLhsl(241, 48%, 17%)
HSVhsv(241, 65%, 26%)
CMYKcmyk(63.6%, 65.2%, 0%, 74.1%)
CIE-LABlab(10.56, 15.41, -27.22)
CIE-LCHlch(10.56, 31.28, 299.51°)
OKLaboklab(23.52% 0.013 -0.0781)
OKLCHoklch(23.52% 0.079 279.4)
XYZxyz(1.6661, 1.2002, 5.2971)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181742 #414217
analogous
#172C42 #181742 #2D1742
triadic
#181742 #421817 #174218
tetradic
#181742 #42172C #414217 #17422D
square
#181742 #42172C #414217 #17422D
split-complementary
#181742 #422D17 #2C4217
monochromatic
#080817 #080817 #181742 #29276F #39379D

Accessibility & contrast

On white

16.94
#181742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181742
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181742#FFFFFF#000000##FFFFFF
##1817421.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#042129
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181742;
/* rgb */ color: rgb(24, 23, 66);
/* oklch */ color: oklch(23.5% 0.079 279.4);
Tailwind
colors: {
  custom: {
    50: '#5a5477',
    500: '#181742',
    950: '#000000',
  },
}
SCSS
$custom: #181742;
$custom-light: #5a5477;
$custom-dark: #000000;
JSON
{
  "hex": "#181742",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 66
  },
  "hsl": {
    "h": 241.395,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23519,
    "c": 0.07913,
    "h": 279.4
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#181742
secondary
#78793C
accent
#D850D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181742

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

Preview Lab → · Contrast checker → · Palette generator →

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