#181F4F#181F4F

#181F4F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.088 H 272.6°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#181F4F
RGBrgb(24, 31, 79)
HSLhsl(232, 53%, 20%)
HSVhsv(232, 70%, 31%)
CMYKcmyk(69.6%, 60.8%, 0%, 69%)
CIE-LABlab(14.05, 14.62, -30.58)
CIE-LCHlch(14.05, 33.89, 295.56°)
OKLaboklab(26.47% 0.0041 -0.0878)
OKLCHoklch(26.47% 0.088 272.6)
XYZxyz(2.2775, 1.7385, 7.6112)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F4F #4F4818
analogous
#183A4F #181F4F #2D184F
triadic
#181F4F #4F181F #1F4F18
tetradic
#181F4F #4F183A #4F4818 #184F2D
square
#181F4F #4F183A #4F4818 #184F2D
split-complementary
#181F4F #4F2D18 #3A4F18
monochromatic
#070917 #0A0D20 #181F4F #26317E #3544AD

Accessibility & contrast

On white

15.58
#181F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F4F
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F4F#FFFFFF#000000##FFFFFF
##181F4F1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181f4f;
/* rgb */ color: rgb(24, 31, 79);
/* oklch */ color: oklch(26.5% 0.088 272.6);
Tailwind
colors: {
  custom: {
    50: '#5c5a81',
    500: '#181f4f',
    950: '#000000',
  },
}
SCSS
$custom: #181f4f;
$custom-light: #5c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#181f4f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 232.364,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26471,
    "c": 0.08793,
    "h": 272.6
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#181F4F
secondary
#867D3D
accent
#CA4BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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