#181C52#181C52

#181C52 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.097 H 274.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#181C52
RGBrgb(24, 28, 82)
HSLhsl(236, 55%, 21%)
HSVhsv(236, 71%, 32%)
CMYKcmyk(70.7%, 65.9%, 0%, 67.8%)
CIE-LABlab(13.43, 18.05, -33.62)
CIE-LCHlch(13.43, 38.16, 298.23°)
OKLaboklab(26.1% 0.0072 -0.0968)
OKLCHoklch(26.1% 0.097 274.3)
XYZxyz(2.3144, 1.6337, 8.1744)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C52 #524E18
analogous
#183952 #181C52 #311852
triadic
#181C52 #52181C #1C5218
tetradic
#181C52 #521839 #524E18 #185231
square
#181C52 #521839 #524E18 #185231
split-complementary
#181C52 #523118 #395218
monochromatic
#070818 #0A0C23 #181C52 #262C81 #343CB1

Accessibility & contrast

On white

15.83
#181C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C52
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C52#FFFFFF#000000##FFFFFF
##181C521.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181c52;
/* rgb */ color: rgb(24, 28, 82);
/* oklch */ color: oklch(26.1% 0.097 274.3);
Tailwind
colors: {
  custom: {
    50: '#5d5883',
    500: '#181c52',
    950: '#000000',
  },
}
SCSS
$custom: #181c52;
$custom-light: #5d5883;
$custom-dark: #000000;
JSON
{
  "hex": "#181c52",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 235.862,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26096,
    "c": 0.09711,
    "h": 274.3
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#181C52
secondary
#89843D
accent
#D44ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C52

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

Preview Lab → · Contrast checker → · Palette generator →

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