#181F57#181F57

#181F57 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.101 H 272.4°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#181F57
RGBrgb(24, 31, 87)
HSLhsl(233, 57%, 22%)
HSVhsv(233, 72%, 34%)
CMYKcmyk(72.4%, 64.4%, 0%, 65.9%)
CIE-LABlab(14.75, 17.87, -34.87)
CIE-LCHlch(14.75, 39.18, 297.13°)
OKLaboklab(27.21% 0.0042 -0.1005)
OKLCHoklch(27.21% 0.101 272.4)
XYZxyz(2.5864, 1.8620, 9.2381)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F57 #575018
analogous
#183F57 #181F57 #311857
triadic
#181F57 #57181F #1F5718
tetradic
#181F57 #57183F #575018 #185731
square
#181F57 #57183F #575018 #185731
split-complementary
#181F57 #573118 #3F5718
monochromatic
#070918 #0B0E27 #181F57 #253087 #3241B7

Accessibility & contrast

On white

15.30
#181F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F57
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F57#FFFFFF#000000##FFFFFF
##181F571.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181f57;
/* rgb */ color: rgb(24, 31, 87);
/* oklch */ color: oklch(27.2% 0.101 272.4);
Tailwind
colors: {
  custom: {
    50: '#5e5a87',
    500: '#181f57',
    950: '#000000',
  },
}
SCSS
$custom: #181f57;
$custom-light: #5e5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#181f57",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 233.333,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27209,
    "c": 0.10056,
    "h": 272.4
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#181F57
secondary
#8E853D
accent
#CF48E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F57

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

Preview Lab → · Contrast checker → · Palette generator →

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