#181C4F#181C4F

#181C4F is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.092 H 274.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#181C4F
RGBrgb(24, 28, 79)
HSLhsl(236, 53%, 20%)
HSVhsv(236, 70%, 31%)
CMYKcmyk(69.6%, 64.6%, 0%, 69%)
CIE-LABlab(13.16, 16.85, -32.02)
CIE-LCHlch(13.16, 36.18, 297.76°)
OKLaboklab(25.81% 0.0073 -0.0921)
OKLCHoklch(25.81% 0.092 274.5)
XYZxyz(2.2028, 1.5890, 7.5863)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C4F #4F4B18
analogous
#18384F #181C4F #2F184F
triadic
#181C4F #4F181C #1C4F18
tetradic
#181C4F #4F1838 #4F4B18 #184F2F
square
#181C4F #4F1838 #4F4B18 #184F2F
split-complementary
#181C4F #4F2F18 #384F18
monochromatic
#070817 #0A0B20 #181C4F #262D7E #353DAD

Accessibility & contrast

On white

15.94
#181C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C4F
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C4F#FFFFFF#000000##FFFFFF
##181C4F1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181c4f;
/* rgb */ color: rgb(24, 28, 79);
/* oklch */ color: oklch(25.8% 0.092 274.5);
Tailwind
colors: {
  custom: {
    50: '#5c5881',
    500: '#181c4f',
    950: '#000000',
  },
}
SCSS
$custom: #181c4f;
$custom-light: #5c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#181c4f",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 79
  },
  "hsl": {
    "h": 235.636,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2581,
    "c": 0.0924,
    "h": 274.5
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#181C4F
secondary
#86813D
accent
#D24BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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