#181D59#181D59

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

Color values

HEX#181D59
RGBrgb(24, 29, 89)
HSLhsl(235, 58%, 22%)
HSVhsv(235, 73%, 35%)
CMYKcmyk(73%, 67.4%, 0%, 65.1%)
CIE-LABlab(14.37, 20.12, -36.84)
CIE-LCHlch(14.37, 41.98, 298.65°)
OKLaboklab(26.99% 0.006 -0.1063)
OKLCHoklch(26.99% 0.106 273.2)
XYZxyz(2.6186, 1.7939, 9.6575)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D59 #595418
analogous
#183D59 #181D59 #341859
triadic
#181D59 #59181D #1D5918
tetradic
#181D59 #59183D #595418 #185934
square
#181D59 #59183D #595418 #185934
split-complementary
#181D59 #593418 #3D5918
monochromatic
#060818 #0B0D29 #181D59 #252D89 #323CB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181D59#FFFFFF#000000##FFFFFF
##181D591.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)
#00275B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181d59;
/* rgb */ color: rgb(24, 29, 89);
/* oklch */ color: oklch(27.0% 0.106 273.2);
Tailwind
colors: {
  custom: {
    50: '#5f5988',
    500: '#181d59',
    950: '#000000',
  },
}
SCSS
$custom: #181d59;
$custom-light: #5f5988;
$custom-dark: #000000;
JSON
{
  "hex": "#181d59",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 235.385,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.10643,
    "h": 273.2
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#181D59
secondary
#90893D
accent
#D547E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181D59

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

Preview Lab → · Contrast checker → · Palette generator →

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