#181C48#181C48

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

Color values

HEX#181C48
RGBrgb(24, 28, 72)
HSLhsl(235, 50%, 19%)
HSVhsv(235, 67%, 28%)
CMYKcmyk(66.7%, 61.1%, 0%, 71.8%)
CIE-LABlab(12.56, 14.04, -28.17)
CIE-LCHlch(12.56, 31.48, 296.49°)
OKLaboklab(25.17% 0.0071 -0.0808)
OKLCHoklch(25.17% 0.081 275)
XYZxyz(1.9613, 1.4924, 6.3143)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C48 #484418
analogous
#183448 #181C48 #2C1848
triadic
#181C48 #48181C #1C4818
tetradic
#181C48 #481834 #484418 #18482C
square
#181C48 #481834 #484418 #18482C
split-complementary
#181C48 #482C18 #344818
monochromatic
#080917 #090A1A #181C48 #272E76 #3740A4

Accessibility & contrast

On white

16.17
#181C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C48
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C48#FFFFFF#000000##FFFFFF
##181C481.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181c48;
/* rgb */ color: rgb(24, 28, 72);
/* oklch */ color: oklch(25.2% 0.081 275.0);
Tailwind
colors: {
  custom: {
    50: '#5b577b',
    500: '#181c48',
    950: '#000000',
  },
}
SCSS
$custom: #181c48;
$custom-light: #5b577b;
$custom-dark: #000000;
JSON
{
  "hex": "#181c48",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 72
  },
  "hsl": {
    "h": 235,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25171,
    "c": 0.08112,
    "h": 275
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#181C48
secondary
#7F793D
accent
#CE4EDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181C48

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

Preview Lab → · Contrast checker → · Palette generator →

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