#181C4E#181C4E

#181C4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.091 H 274.6°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#181C4E
RGBrgb(24, 28, 78)
HSLhsl(236, 53%, 20%)
HSVhsv(236, 69%, 31%)
CMYKcmyk(69.2%, 64.1%, 0%, 69.4%)
CIE-LABlab(13.07, 16.45, -31.47)
CIE-LCHlch(13.07, 35.51, 297.59°)
OKLaboklab(25.72% 0.0073 -0.0905)
OKLCHoklch(25.72% 0.091 274.6)
XYZxyz(2.1666, 1.5746, 7.3960)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C4E #4E4A18
analogous
#18374E #181C4E #2F184E
triadic
#181C4E #4E181C #1C4E18
tetradic
#181C4E #4E1837 #4E4A18 #184E2F
square
#181C4E #4E1837 #4E4A18 #184E2F
split-complementary
#181C4E #4E2F18 #374E18
monochromatic
#070817 #0A0B1F #181C4E #262D7D #353EAC

Accessibility & contrast

On white

15.97
#181C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C4E
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C4E#FFFFFF#000000##FFFFFF
##181C4E1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181c4e;
/* rgb */ color: rgb(24, 28, 78);
/* oklch */ color: oklch(25.7% 0.091 274.6);
Tailwind
colors: {
  custom: {
    50: '#5c5880',
    500: '#181c4e',
    950: '#000000',
  },
}
SCSS
$custom: #181c4e;
$custom-light: #5c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#181c4e",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 235.556,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.25717,
    "c": 0.09081,
    "h": 274.6
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#181C4E
secondary
#857F3D
accent
#D24BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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