#181D5F#181D5F

#181D5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.115 H 272.8°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#181D5F
RGBrgb(24, 29, 95)
HSLhsl(236, 60%, 23%)
HSVhsv(236, 75%, 37%)
CMYKcmyk(74.7%, 69.5%, 0%, 62.7%)
CIE-LABlab(14.95, 22.50, -39.90)
CIE-LCHlch(14.95, 45.81, 299.42°)
OKLaboklab(27.59% 0.0056 -0.1152)
OKLCHoklch(27.59% 0.115 272.8)
XYZxyz(2.8809, 1.8989, 11.0389)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D5F #5F5A18
analogous
#18405F #181D5F #36185F
triadic
#181D5F #5F181D #1D5F18
tetradic
#181D5F #5F1840 #5F5A18 #185F36
square
#181D5F #5F1840 #5F5A18 #185F36
split-complementary
#181D5F #5F3618 #405F18
monochromatic
#060718 #0C0E2E #181D5F #242C90 #313BC1

Accessibility & contrast

On white

15.22
#181D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D5F
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D5F#FFFFFF#000000##FFFFFF
##181D5F1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181d5f;
/* rgb */ color: rgb(24, 29, 95);
/* oklch */ color: oklch(27.6% 0.115 272.8);
Tailwind
colors: {
  custom: {
    50: '#60598d',
    500: '#181d5f',
    950: '#000000',
  },
}
SCSS
$custom: #181d5f;
$custom-light: #60598d;
$custom-dark: #000000;
JSON
{
  "hex": "#181d5f",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 235.775,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27591,
    "c": 0.11537,
    "h": 272.8
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#181D5F
secondary
#958F3D
accent
#D845E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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