#181F48#181F48

#181F48 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.076 H 272.6°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#181F48
RGBrgb(24, 31, 72)
HSLhsl(231, 50%, 19%)
HSVhsv(231, 67%, 28%)
CMYKcmyk(66.7%, 56.9%, 0%, 71.8%)
CIE-LABlab(13.48, 11.78, -26.68)
CIE-LCHlch(13.48, 29.17, 293.82°)
OKLaboklab(25.86% 0.0035 -0.0764)
OKLCHoklch(25.86% 0.076 272.6)
XYZxyz(2.0360, 1.6419, 6.3393)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F48 #484118
analogous
#183748 #181F48 #291848
triadic
#181F48 #48181F #1F4818
tetradic
#181F48 #481837 #484118 #184829
square
#181F48 #481837 #484118 #184829
split-complementary
#181F48 #482918 #374818
monochromatic
#080A17 #090B1A #181F48 #273376 #3747A4

Accessibility & contrast

On white

15.81
#181F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F48
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F48#FFFFFF#000000##FFFFFF
##181F481.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082549
Deuteranopia (green-blind)
#012147
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f48;
/* rgb */ color: rgb(24, 31, 72);
/* oklch */ color: oklch(25.9% 0.076 272.6);
Tailwind
colors: {
  custom: {
    50: '#5a5a7b',
    500: '#181f48',
    950: '#000000',
  },
}
SCSS
$custom: #181f48;
$custom-light: #5a5a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#181f48",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 231.25,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25864,
    "c": 0.07647,
    "h": 272.6
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#181F48
secondary
#7F753D
accent
#C54EDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181F48

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

Preview Lab → · Contrast checker → · Palette generator →

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