#181D51#181D51

#181D51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.094 H 273.8°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#181D51
RGBrgb(24, 29, 81)
HSLhsl(235, 54%, 21%)
HSVhsv(235, 70%, 32%)
CMYKcmyk(70.4%, 64.2%, 0%, 68.2%)
CIE-LABlab(13.63, 16.92, -32.62)
CIE-LCHlch(13.63, 36.75, 297.41°)
OKLaboklab(26.21% 0.0062 -0.0939)
OKLCHoklch(26.21% 0.094 273.8)
XYZxyz(2.3008, 1.6668, 7.9835)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D51 #514C18
analogous
#183951 #181D51 #2F1851
triadic
#181D51 #51181D #1D5118
tetradic
#181D51 #511839 #514C18 #18512F
square
#181D51 #511839 #514C18 #18512F
split-complementary
#181D51 #512F18 #395118
monochromatic
#070818 #0A0C22 #181D51 #262E80 #343FAF

Accessibility & contrast

On white

15.75
#181D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D51
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D51#FFFFFF#000000##FFFFFF
##181D511.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181d51;
/* rgb */ color: rgb(24, 29, 81);
/* oklch */ color: oklch(26.2% 0.094 273.8);
Tailwind
colors: {
  custom: {
    50: '#5d5882',
    500: '#181d51',
    950: '#000000',
  },
}
SCSS
$custom: #181d51;
$custom-light: #5d5882;
$custom-dark: #000000;
JSON
{
  "hex": "#181d51",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 234.737,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26214,
    "c": 0.09409,
    "h": 273.8
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#181D51
secondary
#88813D
accent
#D14ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #181D51

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

Preview Lab → · Contrast checker → · Palette generator →

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