#181F3E#181F3E

#181F3E is a dark, muted blue. Relative luminance 0.015; OKLCH L 25.1% C 0.059 H 271.9°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#181F3E
RGBrgb(24, 31, 62)
HSLhsl(229, 44%, 17%)
HSVhsv(229, 61%, 24%)
CMYKcmyk(61.3%, 50%, 0%, 75.7%)
CIE-LABlab(12.75, 7.77, -20.89)
CIE-LCHlch(12.75, 22.29, 290.40°)
OKLaboklab(25.07% 0.002 -0.0593)
OKLCHoklch(25.07% 0.059 271.9)
XYZxyz(1.7359, 1.5218, 4.7588)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F3E #3E3718
analogous
#18323E #181F3E #24183E
triadic
#181F3E #3E181F #1F3E18
tetradic
#181F3E #3E1832 #3E3718 #183E24
square
#181F3E #3E1832 #3E3718 #183E24
split-complementary
#181F3E #3E2418 #323E18
monochromatic
#090B16 #090B16 #181F3E #29356A #3A4B96

Accessibility & contrast

On white

16.10
#181F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181F3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F3E
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F3E#FFFFFF#000000##FFFFFF
##181F3E1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#0D1F3D
Tritanopia (blue-blind)
#06262B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181f3e;
/* rgb */ color: rgb(24, 31, 62);
/* oklch */ color: oklch(25.1% 0.059 271.9);
Tailwind
colors: {
  custom: {
    50: '#585a73',
    500: '#181f3e',
    950: '#000000',
  },
}
SCSS
$custom: #181f3e;
$custom-light: #585a73;
$custom-dark: #000000;
JSON
{
  "hex": "#181f3e",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 62
  },
  "hsl": {
    "h": 228.947,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25067,
    "c": 0.05938,
    "h": 271.9
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#181F3E
secondary
#746A3D
accent
#BC54D4
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #181F3E

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

Preview Lab → · Contrast checker → · Palette generator →

#181F3E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva