#181A38#181A38

#181A38 is a very dark, muted blue. Relative luminance 0.012; OKLCH L 23.4% C 0.057 H 278.1°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#181A38
RGBrgb(24, 26, 56)
HSLhsl(236, 40%, 16%)
HSVhsv(236, 57%, 22%)
CMYKcmyk(57.1%, 53.6%, 0%, 78%)
CIE-LABlab(10.69, 9.23, -19.90)
CIE-LCHlch(10.69, 21.94, 294.88°)
OKLaboklab(23.37% 0.0081 -0.0565)
OKLCHoklch(23.37% 0.057 278.1)
XYZxyz(1.4597, 1.2184, 3.8989)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A38 #383618
analogous
#182A38 #181A38 #261838
triadic
#181A38 #38181A #1A3818
tetradic
#181A38 #38182A #383618 #183826
square
#181A38 #38182A #383618 #183826
split-complementary
#181A38 #382618 #2A3818
monochromatic
#090A15 #090A15 #181A38 #2A2E63 #3D428E

Accessibility & contrast

On white

16.88
#181A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A38
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A38#FFFFFF#000000##FFFFFF
##181A381.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1E39
Deuteranopia (green-blind)
#0B1C37
Tritanopia (blue-blind)
#0C2026
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181a38;
/* rgb */ color: rgb(24, 26, 56);
/* oklch */ color: oklch(23.4% 0.057 278.1);
Tailwind
colors: {
  custom: {
    50: '#57566f',
    500: '#181a38',
    950: '#000000',
  },
}
SCSS
$custom: #181a38;
$custom-light: #57566f;
$custom-dark: #000000;
JSON
{
  "hex": "#181a38",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 236.25,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23366,
    "c": 0.05708,
    "h": 278.1
  },
  "luminance": 0.01219
}

Semantic roles & 50–950 ramp

primary
#181A38
secondary
#6E6B3E
accent
#C858D0
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #181A38

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

Preview Lab → · Contrast checker → · Palette generator →

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