#181D42#181D42

#181D42 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.070 H 274.4°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#181D42
RGBrgb(24, 29, 66)
HSLhsl(233, 47%, 18%)
HSVhsv(233, 64%, 26%)
CMYKcmyk(63.6%, 56.1%, 0%, 74.1%)
CIE-LABlab(12.39, 10.88, -24.26)
CIE-LCHlch(12.39, 26.59, 294.15°)
OKLaboklab(24.89% 0.0054 -0.0693)
OKLCHoklch(24.89% 0.07 274.4)
XYZxyz(1.7991, 1.4661, 5.3414)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D42 #423D18
analogous
#183242 #181D42 #281842
triadic
#181D42 #42181D #1D4218
tetradic
#181D42 #421832 #423D18 #184228
square
#181D42 #421832 #423D18 #184228
split-complementary
#181D42 #422818 #324218
monochromatic
#080A16 #080A16 #181D42 #28316F #39449C

Accessibility & contrast

On white

16.24
#181D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D42
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D42#FFFFFF#000000##FFFFFF
##181D421.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2243
Deuteranopia (green-blind)
#051F41
Tritanopia (blue-blind)
#03252C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181d42;
/* rgb */ color: rgb(24, 29, 66);
/* oklch */ color: oklch(24.9% 0.070 274.4);
Tailwind
colors: {
  custom: {
    50: '#595877',
    500: '#181d42',
    950: '#000000',
  },
}
SCSS
$custom: #181d42;
$custom-light: #595877;
$custom-dark: #000000;
JSON
{
  "hex": "#181d42",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 232.857,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24891,
    "c": 0.06951,
    "h": 274.4
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#181D42
secondary
#79723D
accent
#C651D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181D42

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

Preview Lab → · Contrast checker → · Palette generator →

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