#181F40#181F40

#181F40 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.063 H 272.2°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#181F40
RGBrgb(24, 31, 64)
HSLhsl(230, 45%, 17%)
HSVhsv(230, 63%, 25%)
CMYKcmyk(62.5%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.89, 8.56, -22.07)
CIE-LCHlch(12.89, 23.67, 291.20°)
OKLaboklab(25.22% 0.0024 -0.0628)
OKLCHoklch(25.22% 0.063 272.2)
XYZxyz(1.7918, 1.5442, 5.0531)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F40 #403918
analogous
#183340 #181F40 #251840
triadic
#181F40 #40181F #1F4018
tetradic
#181F40 #401833 #403918 #184025
square
#181F40 #401833 #403918 #184025
split-complementary
#181F40 #402518 #334018
monochromatic
#080B16 #080B16 #181F40 #29356D #394A99

Accessibility & contrast

On white

16.05
#181F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F40
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F40#FFFFFF#000000##FFFFFF
##181F401.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#0B203F
Tritanopia (blue-blind)
#04262C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181f40;
/* rgb */ color: rgb(24, 31, 64);
/* oklch */ color: oklch(25.2% 0.063 272.2);
Tailwind
colors: {
  custom: {
    50: '#595a75',
    500: '#181f40',
    950: '#000000',
  },
}
SCSS
$custom: #181f40;
$custom-light: #595a75;
$custom-dark: #000000;
JSON
{
  "hex": "#181f40",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 229.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2522,
    "c": 0.06287,
    "h": 272.2
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#181F40
secondary
#776C3D
accent
#BE53D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181F40

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

Preview Lab → · Contrast checker → · Palette generator →

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