#181E51#181E51

#181E51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.093 H 273.2°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#181E51
RGBrgb(24, 30, 81)
HSLhsl(234, 54%, 21%)
HSVhsv(234, 70%, 32%)
CMYKcmyk(70.4%, 63%, 0%, 68.2%)
CIE-LABlab(13.92, 16.18, -32.15)
CIE-LCHlch(13.92, 35.99, 296.71°)
OKLaboklab(26.43% 0.0052 -0.0925)
OKLCHoklch(26.43% 0.093 273.2)
XYZxyz(2.3257, 1.7166, 7.9918)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E51 #514B18
analogous
#183A51 #181E51 #2E1851
triadic
#181E51 #51181E #1E5118
tetradic
#181E51 #51183A #514B18 #18512E
square
#181E51 #51183A #514B18 #18512E
split-complementary
#181E51 #512E18 #3A5118
monochromatic
#070918 #0A0D22 #181E51 #262F80 #3441AF

Accessibility & contrast

On white

15.63
#181E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E51
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E51#FFFFFF#000000##FFFFFF
##181E511.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181e51;
/* rgb */ color: rgb(24, 30, 81);
/* oklch */ color: oklch(26.4% 0.093 273.2);
Tailwind
colors: {
  custom: {
    50: '#5d5982',
    500: '#181e51',
    950: '#000000',
  },
}
SCSS
$custom: #181e51;
$custom-light: #5d5982;
$custom-dark: #000000;
JSON
{
  "hex": "#181e51",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 81
  },
  "hsl": {
    "h": 233.684,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26431,
    "c": 0.09262,
    "h": 273.2
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#181E51
secondary
#88803D
accent
#CE4ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #181E51

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

Preview Lab → · Contrast checker → · Palette generator →

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