#181F54#181F54

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

Color values

HEX#181F54
RGBrgb(24, 31, 84)
HSLhsl(233, 56%, 21%)
HSVhsv(233, 71%, 33%)
CMYKcmyk(71.4%, 63.1%, 0%, 67.1%)
CIE-LABlab(14.48, 16.65, -33.28)
CIE-LCHlch(14.48, 37.21, 296.58°)
OKLaboklab(26.93% 0.0042 -0.0958)
OKLCHoklch(26.93% 0.096 272.5)
XYZxyz(2.4664, 1.8140, 8.6060)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F54 #544D18
analogous
#183D54 #181F54 #2F1854
triadic
#181F54 #54181F #1F5418
tetradic
#181F54 #54183D #544D18 #18542F
square
#181F54 #54183D #544D18 #18542F
split-complementary
#181F54 #542F18 #3D5418
monochromatic
#070918 #0A0D24 #181F54 #263184 #3342B3

Accessibility & contrast

On white

15.41
#181F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F54
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F54#FFFFFF#000000##FFFFFF
##181F541.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181f54;
/* rgb */ color: rgb(24, 31, 84);
/* oklch */ color: oklch(26.9% 0.096 272.5);
Tailwind
colors: {
  custom: {
    50: '#5d5a85',
    500: '#181f54',
    950: '#000000',
  },
}
SCSS
$custom: #181f54;
$custom-light: #5d5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#181f54",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 233,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26927,
    "c": 0.09588,
    "h": 272.5
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#181F54
secondary
#8B823D
accent
#CD49DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F54

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

Preview Lab → · Contrast checker → · Palette generator →

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