#181F41#181F41

#181F41 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.065 H 272.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#181F41
RGBrgb(24, 31, 65)
HSLhsl(230, 46%, 17%)
HSVhsv(230, 63%, 25%)
CMYKcmyk(63.1%, 52.3%, 0%, 74.5%)
CIE-LABlab(12.96, 8.96, -22.65)
CIE-LCHlch(12.96, 24.36, 291.58°)
OKLaboklab(25.3% 0.0026 -0.0645)
OKLCHoklch(25.3% 0.065 272.3)
XYZxyz(1.8205, 1.5557, 5.2043)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F41 #413A18
analogous
#183441 #181F41 #261841
triadic
#181F41 #41181F #1F4118
tetradic
#181F41 #411834 #413A18 #184126
square
#181F41 #411834 #413A18 #184126
split-complementary
#181F41 #412618 #344118
monochromatic
#080B16 #080B16 #181F41 #29346E #394A9A

Accessibility & contrast

On white

16.02
#181F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F41
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F41#FFFFFF#000000##FFFFFF
##181F411.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102342
Deuteranopia (green-blind)
#0A2040
Tritanopia (blue-blind)
#03272C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181f41;
/* rgb */ color: rgb(24, 31, 65);
/* oklch */ color: oklch(25.3% 0.065 272.3);
Tailwind
colors: {
  custom: {
    50: '#595a76',
    500: '#181f41',
    950: '#000000',
  },
}
SCSS
$custom: #181f41;
$custom-light: #595a76;
$custom-dark: #000000;
JSON
{
  "hex": "#181f41",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 229.756,
    "s": 46.067,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25297,
    "c": 0.0646,
    "h": 272.3
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#181F41
secondary
#786E3D
accent
#BF52D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181F41

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

Preview Lab → · Contrast checker → · Palette generator →

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