#181C53#181C53

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

Color values

HEX#181C53
RGBrgb(24, 28, 83)
HSLhsl(236, 55%, 21%)
HSVhsv(236, 71%, 33%)
CMYKcmyk(71.1%, 66.3%, 0%, 67.5%)
CIE-LABlab(13.53, 18.45, -34.15)
CIE-LCHlch(13.53, 38.82, 298.38°)
OKLaboklab(26.19% 0.0072 -0.0984)
OKLCHoklch(26.19% 0.099 274.2)
XYZxyz(2.3528, 1.6490, 8.3762)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C53 #534F18
analogous
#183953 #181C53 #311853
triadic
#181C53 #53181C #1C5318
tetradic
#181C53 #531839 #534F18 #185331
square
#181C53 #531839 #534F18 #185331
split-complementary
#181C53 #533118 #395318
monochromatic
#070818 #0A0C24 #181C53 #262C82 #333CB2

Accessibility & contrast

On white

15.79
#181C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C53
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C53#FFFFFF#000000##FFFFFF
##181C531.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181c53;
/* rgb */ color: rgb(24, 28, 83);
/* oklch */ color: oklch(26.2% 0.099 274.2);
Tailwind
colors: {
  custom: {
    50: '#5d5884',
    500: '#181c53',
    950: '#000000',
  },
}
SCSS
$custom: #181c53;
$custom-light: #5d5884;
$custom-dark: #000000;
JSON
{
  "hex": "#181c53",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 235.932,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26192,
    "c": 0.09865,
    "h": 274.2
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#181C53
secondary
#8A853D
accent
#D449DE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C53

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

Preview Lab → · Contrast checker → · Palette generator →

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