#181F38#181F38

#181F38 is a very dark, muted blue. Relative luminance 0.015; OKLCH L 24.6% C 0.049 H 270.7°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#181F38
RGBrgb(24, 31, 56)
HSLhsl(227, 40%, 16%)
HSVhsv(227, 57%, 22%)
CMYKcmyk(57.1%, 44.6%, 0%, 78%)
CIE-LABlab(12.35, 5.42, -17.27)
CIE-LCHlch(12.35, 18.10, 287.43°)
OKLaboklab(24.63% 0.0006 -0.0488)
OKLCHoklch(24.63% 0.049 270.7)
XYZxyz(1.5803, 1.4596, 3.9391)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F38 #383118
analogous
#182F38 #181F38 #211838
triadic
#181F38 #38181F #1F3818
tetradic
#181F38 #38182F #383118 #183821
square
#181F38 #38182F #383118 #183821
split-complementary
#181F38 #382118 #2F3818
monochromatic
#090C15 #090C15 #181F38 #2A3763 #3D4E8E

Accessibility & contrast

On white

16.25
#181F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181F38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F38
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F38#FFFFFF#000000##FFFFFF
##181F381.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152239
Deuteranopia (green-blind)
#121F37
Tritanopia (blue-blind)
#0B2428
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181f38;
/* rgb */ color: rgb(24, 31, 56);
/* oklch */ color: oklch(24.6% 0.049 270.7);
Tailwind
colors: {
  custom: {
    50: '#575a6e',
    500: '#181f38',
    950: '#000000',
  },
}
SCSS
$custom: #181f38;
$custom-light: #575a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f38",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 56
  },
  "hsl": {
    "h": 226.875,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24633,
    "c": 0.04877,
    "h": 270.7
  },
  "luminance": 0.0146
}

Semantic roles & 50–950 ramp

primary
#181F38
secondary
#6E633E
accent
#B658D0
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #181F38

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

Preview Lab → · Contrast checker → · Palette generator →

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