#181B38#181B38

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

Color values

HEX#181B38
RGBrgb(24, 27, 56)
HSLhsl(234, 40%, 16%)
HSVhsv(234, 57%, 22%)
CMYKcmyk(57.1%, 51.8%, 0%, 78%)
CIE-LABlab(11.02, 8.46, -19.38)
CIE-LCHlch(11.02, 21.15, 293.59°)
OKLaboklab(23.61% 0.0066 -0.055)
OKLCHoklch(23.61% 0.055 276.8)
XYZxyz(1.4822, 1.2635, 3.9064)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B38 #383518
analogous
#182B38 #181B38 #251838
triadic
#181B38 #38181B #1B3818
tetradic
#181B38 #38182B #383518 #183825
square
#181B38 #38182B #383518 #183825
split-complementary
#181B38 #382518 #2B3818
monochromatic
#090A15 #090A15 #181B38 #2A3063 #3D448E

Accessibility & contrast

On white

16.76
#181B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B38
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B38#FFFFFF#000000##FFFFFF
##181B381.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1F39
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#0C2126
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181b38;
/* rgb */ color: rgb(24, 27, 56);
/* oklch */ color: oklch(23.6% 0.055 276.8);
Tailwind
colors: {
  custom: {
    50: '#57576f',
    500: '#181b38',
    950: '#000000',
  },
}
SCSS
$custom: #181b38;
$custom-light: #57576f;
$custom-dark: #000000;
JSON
{
  "hex": "#181b38",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 56
  },
  "hsl": {
    "h": 234.375,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23613,
    "c": 0.05537,
    "h": 276.8
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#181B38
secondary
#6E693E
accent
#C558D0
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #181B38

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

Preview Lab → · Contrast checker → · Palette generator →

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