#181B52#181B52

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

Color values

HEX#181B52
RGBrgb(24, 27, 82)
HSLhsl(237, 55%, 21%)
HSVhsv(237, 71%, 32%)
CMYKcmyk(70.7%, 67.1%, 0%, 67.8%)
CIE-LABlab(13.15, 18.78, -34.08)
CIE-LCHlch(13.15, 38.92, 298.86°)
OKLaboklab(25.89% 0.0082 -0.0982)
OKLCHoklch(25.89% 0.099 274.8)
XYZxyz(2.2911, 1.5871, 8.1666)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B52 #524F18
analogous
#183852 #181B52 #321852
triadic
#181B52 #52181B #1B5218
tetradic
#181B52 #521838 #524F18 #185232
square
#181B52 #521838 #524F18 #185232
split-complementary
#181B52 #523218 #385218
monochromatic
#070818 #0A0B23 #181B52 #262B81 #343AB1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181B52#FFFFFF#000000##FFFFFF
##181B521.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)
#002454
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181b52;
/* rgb */ color: rgb(24, 27, 82);
/* oklch */ color: oklch(25.9% 0.099 274.8);
Tailwind
colors: {
  custom: {
    50: '#5d5783',
    500: '#181b52',
    950: '#000000',
  },
}
SCSS
$custom: #181b52;
$custom-light: #5d5783;
$custom-dark: #000000;
JSON
{
  "hex": "#181b52",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 236.897,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25887,
    "c": 0.09854,
    "h": 274.8
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#181B52
secondary
#89853D
accent
#D64ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B52

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

Preview Lab → · Contrast checker → · Palette generator →

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