#181B42#181B42

#181B42 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.073 H 276.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#181B42
RGBrgb(24, 27, 66)
HSLhsl(236, 47%, 18%)
HSVhsv(236, 64%, 26%)
CMYKcmyk(63.6%, 59.1%, 0%, 74.1%)
CIE-LABlab(11.77, 12.39, -25.27)
CIE-LCHlch(11.77, 28.15, 296.13°)
OKLaboklab(24.42% 0.008 -0.0723)
OKLCHoklch(24.42% 0.073 276.3)
XYZxyz(1.7517, 1.3713, 5.3256)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B42 #423F18
analogous
#183042 #181B42 #2A1842
triadic
#181B42 #42181B #1B4218
tetradic
#181B42 #421830 #423F18 #18422A
square
#181B42 #421830 #423F18 #18422A
split-complementary
#181B42 #422A18 #304218
monochromatic
#080916 #080916 #181B42 #282D6F #39409C

Accessibility & contrast

On white

16.48
#181B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#181B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B42
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B42#FFFFFF#000000##FFFFFF
##181B421.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062143
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#03242B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181b42;
/* rgb */ color: rgb(24, 27, 66);
/* oklch */ color: oklch(24.4% 0.073 276.3);
Tailwind
colors: {
  custom: {
    50: '#595777',
    500: '#181b42',
    950: '#000000',
  },
}
SCSS
$custom: #181b42;
$custom-light: #595777;
$custom-dark: #000000;
JSON
{
  "hex": "#181b42",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 235.714,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24419,
    "c": 0.07272,
    "h": 276.3
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#181B42
secondary
#79743D
accent
#CD51D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181B42

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

Preview Lab → · Contrast checker → · Palette generator →

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