#181B39#181B39

#181B39 is a very dark, muted blue. Relative luminance 0.013; OKLCH L 23.7% C 0.057 H 276.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#181B39
RGBrgb(24, 27, 57)
HSLhsl(235, 41%, 16%)
HSVhsv(235, 58%, 22%)
CMYKcmyk(57.9%, 52.6%, 0%, 77.6%)
CIE-LABlab(11.09, 8.85, -19.98)
CIE-LCHlch(11.09, 21.86, 293.88°)
OKLaboklab(23.69% 0.0068 -0.0567)
OKLCHoklch(23.69% 0.057 276.8)
XYZxyz(1.5069, 1.2734, 4.0365)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B39 #393618
analogous
#182B39 #181B39 #251839
triadic
#181B39 #39181B #1B3918
tetradic
#181B39 #39182B #393618 #183925
square
#181B39 #39182B #393618 #183925
split-complementary
#181B39 #392518 #2B3918
monochromatic
#090A16 #090A16 #181B39 #2A2F64 #3C448F

Accessibility & contrast

On white

16.74
#181B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#181B39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B39
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B39#FFFFFF#000000##FFFFFF
##181B391.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1F3A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#0B2127
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181b39;
/* rgb */ color: rgb(24, 27, 57);
/* oklch */ color: oklch(23.7% 0.057 276.8);
Tailwind
colors: {
  custom: {
    50: '#58576f',
    500: '#181b39',
    950: '#000000',
  },
}
SCSS
$custom: #181b39;
$custom-light: #58576f;
$custom-dark: #000000;
JSON
{
  "hex": "#181b39",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 57
  },
  "hsl": {
    "h": 234.545,
    "s": 40.741,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2369,
    "c": 0.05715,
    "h": 276.8
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#181B39
secondary
#6F6B3E
accent
#C657D1
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #181B39

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

Preview Lab → · Contrast checker → · Palette generator →

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