#181F56#181F56

#181F56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.099 H 272.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#181F56
RGBrgb(24, 31, 86)
HSLhsl(233, 56%, 22%)
HSVhsv(233, 72%, 34%)
CMYKcmyk(72.1%, 64%, 0%, 66.3%)
CIE-LABlab(14.66, 17.46, -34.34)
CIE-LCHlch(14.66, 38.53, 296.95°)
OKLaboklab(27.11% 0.0042 -0.0989)
OKLCHoklch(27.11% 0.099 272.4)
XYZxyz(2.5458, 1.8458, 9.0244)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F56 #564F18
analogous
#183E56 #181F56 #301856
triadic
#181F56 #56181F #1F5618
tetradic
#181F56 #56183E #564F18 #185630
square
#181F56 #56183E #564F18 #185630
split-complementary
#181F56 #563018 #3E5618
monochromatic
#070918 #0B0E26 #181F56 #253086 #3341B6

Accessibility & contrast

On white

15.34
#181F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F56
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F56#FFFFFF#000000##FFFFFF
##181F561.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181f56;
/* rgb */ color: rgb(24, 31, 86);
/* oklch */ color: oklch(27.1% 0.099 272.4);
Tailwind
colors: {
  custom: {
    50: '#5e5a86',
    500: '#181f56',
    950: '#000000',
  },
}
SCSS
$custom: #181f56;
$custom-light: #5e5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#181f56",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 233.226,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27114,
    "c": 0.09901,
    "h": 272.4
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#181F56
secondary
#8D843D
accent
#CF48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F56

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

Preview Lab → · Contrast checker → · Palette generator →

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