#181F3F#181F3F

#181F3F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.061 H 272.1°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#181F3F
RGBrgb(24, 31, 63)
HSLhsl(229, 45%, 17%)
HSVhsv(229, 62%, 25%)
CMYKcmyk(61.9%, 50.8%, 0%, 75.3%)
CIE-LABlab(12.82, 8.16, -21.48)
CIE-LCHlch(12.82, 22.98, 290.81°)
OKLaboklab(25.14% 0.0022 -0.0611)
OKLCHoklch(25.14% 0.061 272.1)
XYZxyz(1.7636, 1.5329, 4.9046)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F3F #3F3818
analogous
#18333F #181F3F #25183F
triadic
#181F3F #3F181F #1F3F18
tetradic
#181F3F #3F1833 #3F3818 #183F25
square
#181F3F #3F1833 #3F3818 #183F25
split-complementary
#181F3F #3F2518 #333F18
monochromatic
#080B16 #080B16 #181F3F #29356B #3A4B98

Accessibility & contrast

On white

16.07
#181F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F3F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F3F#FFFFFF#000000##FFFFFF
##181F3F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112340
Deuteranopia (green-blind)
#0C203E
Tritanopia (blue-blind)
#05262B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181f3f;
/* rgb */ color: rgb(24, 31, 63);
/* oklch */ color: oklch(25.1% 0.061 272.1);
Tailwind
colors: {
  custom: {
    50: '#585a74',
    500: '#181f3f',
    950: '#000000',
  },
}
SCSS
$custom: #181f3f;
$custom-light: #585a74;
$custom-dark: #000000;
JSON
{
  "hex": "#181f3f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 229.231,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25143,
    "c": 0.06113,
    "h": 272.1
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#181F3F
secondary
#756B3D
accent
#BD53D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #181F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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