#181C5C#181C5C

#181C5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.112 H 273.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#181C5C
RGBrgb(24, 28, 92)
HSLhsl(236, 59%, 23%)
HSVhsv(236, 74%, 36%)
CMYKcmyk(73.9%, 69.6%, 0%, 63.9%)
CIE-LABlab(14.38, 22.03, -38.82)
CIE-LCHlch(14.38, 44.63, 299.57°)
OKLaboklab(27.09% 0.0066 -0.1121)
OKLCHoklch(27.09% 0.112 273.4)
XYZxyz(2.7231, 1.7971, 10.3265)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C5C #5C5818
analogous
#183E5C #181C5C #36185C
triadic
#181C5C #5C181C #1C5C18
tetradic
#181C5C #5C183E #5C5818 #185C36
square
#181C5C #5C183E #5C5818 #185C36
split-complementary
#181C5C #5C3618 #3E5C18
monochromatic
#060718 #0B0D2B #181C5C #252B8D #313ABD

Accessibility & contrast

On white

15.45
#181C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C5C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C5C#FFFFFF#000000##FFFFFF
##181C5C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181c5c;
/* rgb */ color: rgb(24, 28, 92);
/* oklch */ color: oklch(27.1% 0.112 273.4);
Tailwind
colors: {
  custom: {
    50: '#60588b',
    500: '#181c5c',
    950: '#000000',
  },
}
SCSS
$custom: #181c5c;
$custom-light: #60588b;
$custom-dark: #000000;
JSON
{
  "hex": "#181c5c",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 92
  },
  "hsl": {
    "h": 236.471,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27089,
    "c": 0.11228,
    "h": 273.4
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#181C5C
secondary
#938E3D
accent
#D946E2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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