#181C5B#181C5B

#181C5B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.111 H 273.5°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#181C5B
RGBrgb(24, 28, 91)
HSLhsl(236, 58%, 23%)
HSVhsv(236, 74%, 36%)
CMYKcmyk(73.6%, 69.2%, 0%, 64.3%)
CIE-LABlab(14.29, 21.63, -38.31)
CIE-LCHlch(14.29, 44.00, 299.45°)
OKLaboklab(26.99% 0.0067 -0.1106)
OKLCHoklch(26.99% 0.111 273.5)
XYZxyz(2.6796, 1.7798, 10.0978)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C5B #5B5718
analogous
#183D5B #181C5B #36185B
triadic
#181C5B #5B181C #1C5B18
tetradic
#181C5B #5B183D #5B5718 #185B36
square
#181C5B #5B183D #5B5718 #185B36
split-complementary
#181C5B #5B3618 #3D5B18
monochromatic
#060718 #0B0D2B #181C5B #252B8B #323ABC

Accessibility & contrast

On white

15.49
#181C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C5B
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C5B#FFFFFF#000000##FFFFFF
##181C5B1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181c5b;
/* rgb */ color: rgb(24, 28, 91);
/* oklch */ color: oklch(27.0% 0.111 273.5);
Tailwind
colors: {
  custom: {
    50: '#5f588a',
    500: '#181c5b',
    950: '#000000',
  },
}
SCSS
$custom: #181c5b;
$custom-light: #5f588a;
$custom-dark: #000000;
JSON
{
  "hex": "#181c5b",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 236.418,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26987,
    "c": 0.11079,
    "h": 273.5
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#181C5B
secondary
#928D3D
accent
#D846E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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