#181F51#181F51

#181F51 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.091 H 272.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#181F51
RGBrgb(24, 31, 81)
HSLhsl(233, 54%, 21%)
HSVhsv(233, 70%, 32%)
CMYKcmyk(70.4%, 61.7%, 0%, 68.2%)
CIE-LABlab(14.22, 15.44, -31.67)
CIE-LCHlch(14.22, 35.23, 295.99°)
OKLaboklab(26.65% 0.0042 -0.0911)
OKLCHoklch(26.65% 0.091 272.6)
XYZxyz(2.3514, 1.7680, 8.0003)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F51 #514A18
analogous
#183B51 #181F51 #2D1851
triadic
#181F51 #51181F #1F5118
tetradic
#181F51 #51183B #514A18 #18512D
square
#181F51 #51183B #514A18 #18512D
split-complementary
#181F51 #512D18 #3B5118
monochromatic
#070918 #0A0D22 #181F51 #263180 #3443AF

Accessibility & contrast

On white

15.51
#181F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F51
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F51#FFFFFF#000000##FFFFFF
##181F511.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181f51;
/* rgb */ color: rgb(24, 31, 81);
/* oklch */ color: oklch(26.7% 0.091 272.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a82',
    500: '#181f51',
    950: '#000000',
  },
}
SCSS
$custom: #181f51;
$custom-light: #5d5a82;
$custom-dark: #000000;
JSON
{
  "hex": "#181f51",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 232.632,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26651,
    "c": 0.09114,
    "h": 272.6
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#181F51
secondary
#887F3D
accent
#CC4ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F51

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

Preview Lab → · Contrast checker → · Palette generator →

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