#181B40#181B40

#181B40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.069 H 276.4°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#181B40
RGBrgb(24, 27, 64)
HSLhsl(236, 45%, 17%)
HSVhsv(236, 63%, 25%)
CMYKcmyk(62.5%, 57.8%, 0%, 74.9%)
CIE-LABlab(11.61, 11.60, -24.12)
CIE-LCHlch(11.61, 26.76, 295.68°)
OKLaboklab(24.25% 0.0078 -0.0689)
OKLCHoklch(24.25% 0.069 276.4)
XYZxyz(1.6937, 1.3481, 5.0205)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B40 #403D18
analogous
#182F40 #181B40 #291840
triadic
#181B40 #40181B #1B4018
tetradic
#181B40 #40182F #403D18 #184029
square
#181B40 #40182F #403D18 #184029
split-complementary
#181B40 #402918 #2F4018
monochromatic
#080916 #080916 #181B40 #292E6D #394199

Accessibility & contrast

On white

16.54
#181B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B40
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B40#FFFFFF#000000##FFFFFF
##181B401.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082041
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#05232A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181b40;
/* rgb */ color: rgb(24, 27, 64);
/* oklch */ color: oklch(24.3% 0.069 276.4);
Tailwind
colors: {
  custom: {
    50: '#595775',
    500: '#181b40',
    950: '#000000',
  },
}
SCSS
$custom: #181b40;
$custom-light: #595775;
$custom-dark: #000000;
JSON
{
  "hex": "#181b40",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 235.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24251,
    "c": 0.06933,
    "h": 276.4
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#181B40
secondary
#77723D
accent
#CB53D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181B40

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

Preview Lab → · Contrast checker → · Palette generator →

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