#181F49#181F49

#181F49 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.078 H 272.7°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#181F49
RGBrgb(24, 31, 73)
HSLhsl(231, 51%, 19%)
HSVhsv(231, 67%, 29%)
CMYKcmyk(67.1%, 57.5%, 0%, 71.4%)
CIE-LABlab(13.56, 12.19, -27.25)
CIE-LCHlch(13.56, 29.85, 294.10°)
OKLaboklab(25.95% 0.0036 -0.078)
OKLCHoklch(25.95% 0.078 272.7)
XYZxyz(2.0689, 1.6550, 6.5125)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F49 #494218
analogous
#183849 #181F49 #2A1849
triadic
#181F49 #49181F #1F4918
tetradic
#181F49 #491838 #494218 #18492A
square
#181F49 #491838 #494218 #18492A
split-complementary
#181F49 #492A18 #384918
monochromatic
#080A17 #090B1B #181F49 #273377 #3646A5

Accessibility & contrast

On white

15.78
#181F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F49
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F49#FFFFFF#000000##FFFFFF
##181F491.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07254A
Deuteranopia (green-blind)
#002148
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f49;
/* rgb */ color: rgb(24, 31, 73);
/* oklch */ color: oklch(25.9% 0.078 272.7);
Tailwind
colors: {
  custom: {
    50: '#5b5a7c',
    500: '#181f49',
    950: '#000000',
  },
}
SCSS
$custom: #181f49;
$custom-light: #5b5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#181f49",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 231.429,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25949,
    "c": 0.07813,
    "h": 272.7
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#181F49
secondary
#80763D
accent
#C64EDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181F49

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

Preview Lab → · Contrast checker → · Palette generator →

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