#181A52#181A52

#181A52 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.100 H 275.3°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#181A52
RGBrgb(24, 26, 82)
HSLhsl(238, 55%, 21%)
HSVhsv(238, 71%, 32%)
CMYKcmyk(70.7%, 68.3%, 0%, 67.8%)
CIE-LABlab(12.87, 19.51, -34.54)
CIE-LCHlch(12.87, 39.67, 299.46°)
OKLaboklab(25.68% 0.0092 -0.0995)
OKLCHoklch(25.68% 0.1 275.3)
XYZxyz(2.2686, 1.5420, 8.1591)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A52 #525018
analogous
#183752 #181A52 #331852
triadic
#181A52 #52181A #1A5218
tetradic
#181A52 #521837 #525018 #185233
square
#181A52 #521837 #525018 #185233
split-complementary
#181A52 #523318 #375218
monochromatic
#070818 #0A0B23 #181A52 #262981 #3438B1

Accessibility & contrast

On white

16.05
#181A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A52
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A52#FFFFFF#000000##FFFFFF
##181A521.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002833
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181a52;
/* rgb */ color: rgb(24, 26, 82);
/* oklch */ color: oklch(25.7% 0.100 275.3);
Tailwind
colors: {
  custom: {
    50: '#5d5683',
    500: '#181a52',
    950: '#000000',
  },
}
SCSS
$custom: #181a52;
$custom-light: #5d5683;
$custom-dark: #000000;
JSON
{
  "hex": "#181a52",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 237.931,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25682,
    "c": 0.09996,
    "h": 275.3
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#181A52
secondary
#89863D
accent
#D94ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A52

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

Preview Lab → · Contrast checker → · Palette generator →

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