#181F42#181F42

#181F42 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.066 H 272.4°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#181F42
RGBrgb(24, 31, 66)
HSLhsl(230, 47%, 18%)
HSVhsv(230, 64%, 26%)
CMYKcmyk(63.6%, 53%, 0%, 74.1%)
CIE-LABlab(13.03, 9.36, -23.24)
CIE-LCHlch(13.03, 25.05, 291.94°)
OKLaboklab(25.38% 0.0027 -0.0663)
OKLCHoklch(25.38% 0.066 272.4)
XYZxyz(1.8497, 1.5674, 5.3583)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F42 #423B18
analogous
#183442 #181F42 #261842
triadic
#181F42 #42181F #1F4218
tetradic
#181F42 #421834 #423B18 #184226
square
#181F42 #421834 #423B18 #184226
split-complementary
#181F42 #422618 #344218
monochromatic
#080B16 #080B16 #181F42 #28346F #39499C

Accessibility & contrast

On white

15.99
#181F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F42
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F42#FFFFFF#000000##FFFFFF
##181F421.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2443
Deuteranopia (green-blind)
#092041
Tritanopia (blue-blind)
#02272D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181f42;
/* rgb */ color: rgb(24, 31, 66);
/* oklch */ color: oklch(25.4% 0.066 272.4);
Tailwind
colors: {
  custom: {
    50: '#595a76',
    500: '#181f42',
    950: '#000000',
  },
}
SCSS
$custom: #181f42;
$custom-light: #595a76;
$custom-dark: #000000;
JSON
{
  "hex": "#181f42",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 230,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25376,
    "c": 0.06632,
    "h": 272.4
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#181F42
secondary
#796F3D
accent
#C051D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181F42

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

Preview Lab → · Contrast checker → · Palette generator →

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