#181C4D#181C4D

#181C4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.089 H 274.7°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#181C4D
RGBrgb(24, 28, 77)
HSLhsl(235, 52%, 20%)
HSVhsv(235, 69%, 30%)
CMYKcmyk(68.8%, 63.6%, 0%, 69.8%)
CIE-LABlab(12.99, 16.05, -30.93)
CIE-LCHlch(12.99, 34.85, 297.42°)
OKLaboklab(25.62% 0.0073 -0.0889)
OKLCHoklch(25.62% 0.089 274.7)
XYZxyz(2.1311, 1.5603, 7.2086)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C4D #4D4918
analogous
#18364D #181C4D #2F184D
triadic
#181C4D #4D181C #1C4D18
tetradic
#181C4D #4D1836 #4D4918 #184D2F
square
#181C4D #4D1836 #4D4918 #184D2F
split-complementary
#181C4D #4D2F18 #364D18
monochromatic
#070817 #090B1E #181C4D #272D7C #353EAA

Accessibility & contrast

On white

16.00
#181C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C4D
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C4D#FFFFFF#000000##FFFFFF
##181C4D1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181c4d;
/* rgb */ color: rgb(24, 28, 77);
/* oklch */ color: oklch(25.6% 0.089 274.7);
Tailwind
colors: {
  custom: {
    50: '#5c587f',
    500: '#181c4d',
    950: '#000000',
  },
}
SCSS
$custom: #181c4d;
$custom-light: #5c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#181c4d",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 235.472,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25624,
    "c": 0.08922,
    "h": 274.7
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#181C4D
secondary
#847E3D
accent
#D14CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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