#182A52#182A52

#182A52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.3% C 0.077 H 264.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#182A52
RGBrgb(24, 42, 82)
HSLhsl(221, 55%, 21%)
HSVhsv(221, 71%, 32%)
CMYKcmyk(70.7%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.73, 7.67, -26.68)
CIE-LCHlch(17.73, 27.76, 286.04°)
OKLaboklab(29.34% -0.008 -0.0762)
OKLCHoklch(29.34% 0.077 264)
XYZxyz(2.7271, 2.4591, 8.3119)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A52 #524018
analogous
#184752 #182A52 #231852
triadic
#182A52 #52182A #2A5218
tetradic
#182A52 #521847 #524018 #185223
square
#182A52 #521847 #524018 #185223
split-complementary
#182A52 #522318 #475218
monochromatic
#070C18 #0A1223 #182A52 #264281 #345AB1

Accessibility & contrast

On white

14.08
#182A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#182A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A52
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A52#FFFFFF#000000##FFFFFF
##182A521.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E54
Deuteranopia (green-blind)
#0D2951
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #182a52;
/* rgb */ color: rgb(24, 42, 82);
/* oklch */ color: oklch(29.3% 0.077 264.0);
Tailwind
colors: {
  custom: {
    50: '#5c6383',
    500: '#182a52',
    950: '#000000',
  },
}
SCSS
$custom: #182a52;
$custom-light: #5c6383;
$custom-dark: #000000;
JSON
{
  "hex": "#182a52",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 221.379,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.07663,
    "h": 264
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#182A52
secondary
#89713D
accent
#B04ADE
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #182A52

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

Preview Lab → · Contrast checker → · Palette generator →

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