#181740#181740

#181740 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.076 H 279.8°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#181740
RGBrgb(24, 23, 64)
HSLhsl(241, 47%, 17%)
HSVhsv(241, 64%, 25%)
CMYKcmyk(62.5%, 64.1%, 0%, 74.9%)
CIE-LABlab(10.39, 14.63, -26.09)
CIE-LCHlch(10.39, 29.91, 299.28°)
OKLaboklab(23.34% 0.013 -0.0747)
OKLCHoklch(23.34% 0.076 279.8)
XYZxyz(1.6082, 1.1770, 4.9919)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181740 #3F4017
analogous
#172B40 #181740 #2D1740
triadic
#181740 #401817 #174018
tetradic
#181740 #40172B #3F4017 #17402D
square
#181740 #40172B #3F4017 #17402D
split-complementary
#181740 #402D17 #2B4017
monochromatic
#080817 #080817 #181740 #29276D #3A379A

Accessibility & contrast

On white

17.00
#181740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181740
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181740#FFFFFF#000000##FFFFFF
##1817401.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#052128
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #181740;
/* rgb */ color: rgb(24, 23, 64);
/* oklch */ color: oklch(23.3% 0.076 279.8);
Tailwind
colors: {
  custom: {
    50: '#595375',
    500: '#181740',
    950: '#000000',
  },
}
SCSS
$custom: #181740;
$custom-light: #595375;
$custom-dark: #000000;
JSON
{
  "hex": "#181740",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 241.463,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23337,
    "c": 0.07584,
    "h": 279.8
  },
  "luminance": 0.01177
}

Semantic roles & 50–950 ramp

primary
#181740
secondary
#75773C
accent
#D751D3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181740

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

Preview Lab → · Contrast checker → · Palette generator →

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