#181F55#181F55

#181F55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.097 H 272.5°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#181F55
RGBrgb(24, 31, 85)
HSLhsl(233, 56%, 21%)
HSVhsv(233, 72%, 33%)
CMYKcmyk(71.8%, 63.5%, 0%, 66.7%)
CIE-LABlab(14.57, 17.06, -33.81)
CIE-LCHlch(14.57, 37.87, 296.77°)
OKLaboklab(27.02% 0.0042 -0.0974)
OKLCHoklch(27.02% 0.097 272.5)
XYZxyz(2.5058, 1.8298, 8.8137)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F55 #554E18
analogous
#183E55 #181F55 #301855
triadic
#181F55 #55181F #1F5518
tetradic
#181F55 #55183E #554E18 #185530
square
#181F55 #55183E #554E18 #185530
split-complementary
#181F55 #553018 #3E5518
monochromatic
#070918 #0B0E25 #181F55 #253085 #3342B4

Accessibility & contrast

On white

15.37
#181F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F55
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F55#FFFFFF#000000##FFFFFF
##181F551.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181f55;
/* rgb */ color: rgb(24, 31, 85);
/* oklch */ color: oklch(27.0% 0.097 272.5);
Tailwind
colors: {
  custom: {
    50: '#5e5a85',
    500: '#181f55',
    950: '#000000',
  },
}
SCSS
$custom: #181f55;
$custom-light: #5e5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#181f55",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 233.115,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2702,
    "c": 0.09745,
    "h": 272.5
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#181F55
secondary
#8C833D
accent
#CE49DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F55

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

Preview Lab → · Contrast checker → · Palette generator →

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