#181C4C#181C4C

#181C4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.088 H 274.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#181C4C
RGBrgb(24, 28, 76)
HSLhsl(235, 52%, 20%)
HSVhsv(235, 68%, 30%)
CMYKcmyk(68.4%, 63.2%, 0%, 70.2%)
CIE-LABlab(12.90, 15.65, -30.39)
CIE-LCHlch(12.90, 34.18, 297.25°)
OKLaboklab(25.53% 0.0073 -0.0873)
OKLCHoklch(25.53% 0.088 274.7)
XYZxyz(2.0960, 1.5463, 7.0241)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C4C #4C4818
analogous
#18364C #181C4C #2E184C
triadic
#181C4C #4C181C #1C4C18
tetradic
#181C4C #4C1836 #4C4818 #184C2E
square
#181C4C #4C1836 #4C4818 #184C2E
split-complementary
#181C4C #4C2E18 #364C18
monochromatic
#070917 #090B1D #181C4C #272D7B #353EA9

Accessibility & contrast

On white

16.04
#181C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C4C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C4C#FFFFFF#000000##FFFFFF
##181C4C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181c4c;
/* rgb */ color: rgb(24, 28, 76);
/* oklch */ color: oklch(25.5% 0.088 274.7);
Tailwind
colors: {
  custom: {
    50: '#5c587e',
    500: '#181c4c',
    950: '#000000',
  },
}
SCSS
$custom: #181c4c;
$custom-light: #5c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#181c4c",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 235.385,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25532,
    "c": 0.08762,
    "h": 274.7
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#181C4C
secondary
#837D3D
accent
#D04CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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