#181B41#181B41

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

Color values

HEX#181B41
RGBrgb(24, 27, 65)
HSLhsl(236, 46%, 17%)
HSVhsv(236, 63%, 25%)
CMYKcmyk(63.1%, 58.5%, 0%, 74.5%)
CIE-LABlab(11.69, 12.00, -24.70)
CIE-LCHlch(11.69, 27.46, 295.91°)
OKLaboklab(24.33% 0.0079 -0.0706)
OKLCHoklch(24.33% 0.071 276.4)
XYZxyz(1.7225, 1.3596, 5.1717)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B41 #413E18
analogous
#182F41 #181B41 #2A1841
triadic
#181B41 #41181B #1B4118
tetradic
#181B41 #41182F #413E18 #18412A
square
#181B41 #41182F #413E18 #18412A
split-complementary
#181B41 #412A18 #2F4118
monochromatic
#080916 #080916 #181B41 #292E6E #39409A

Accessibility & contrast

On white

16.51
#181B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B41
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B41#FFFFFF#000000##FFFFFF
##181B411.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072142
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#04242B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181b41;
/* rgb */ color: rgb(24, 27, 65);
/* oklch */ color: oklch(24.3% 0.071 276.4);
Tailwind
colors: {
  custom: {
    50: '#595776',
    500: '#181b41',
    950: '#000000',
  },
}
SCSS
$custom: #181b41;
$custom-light: #595776;
$custom-dark: #000000;
JSON
{
  "hex": "#181b41",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 235.61,
    "s": 46.067,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24334,
    "c": 0.07103,
    "h": 276.4
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#181B41
secondary
#78733D
accent
#CC52D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181B41

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

Preview Lab → · Contrast checker → · Palette generator →

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