#181C57#181C57

#181C57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.105 H 273.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#181C57
RGBrgb(24, 28, 87)
HSLhsl(236, 57%, 22%)
HSVhsv(236, 72%, 34%)
CMYKcmyk(72.4%, 67.8%, 0%, 65.9%)
CIE-LABlab(13.90, 20.05, -36.25)
CIE-LCHlch(13.90, 41.43, 298.94°)
OKLaboklab(26.58% 0.007 -0.1045)
OKLCHoklch(26.58% 0.105 273.8)
XYZxyz(2.5117, 1.7126, 9.2132)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C57 #575318
analogous
#183C57 #181C57 #341857
triadic
#181C57 #57181C #1C5718
tetradic
#181C57 #57183C #575318 #185734
square
#181C57 #57183C #575318 #185734
split-complementary
#181C57 #573418 #3C5718
monochromatic
#070818 #0B0D27 #181C57 #252B87 #323BB7

Accessibility & contrast

On white

15.64
#181C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C57
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C57#FFFFFF#000000##FFFFFF
##181C571.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181c57;
/* rgb */ color: rgb(24, 28, 87);
/* oklch */ color: oklch(26.6% 0.105 273.8);
Tailwind
colors: {
  custom: {
    50: '#5e5887',
    500: '#181c57',
    950: '#000000',
  },
}
SCSS
$custom: #181c57;
$custom-light: #5e5887;
$custom-dark: #000000;
JSON
{
  "hex": "#181c57",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 236.19,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26585,
    "c": 0.10478,
    "h": 273.8
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#181C57
secondary
#8E893D
accent
#D648E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C57

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

Preview Lab → · Contrast checker → · Palette generator →

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