#181C59#181C59

#181C59 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.108 H 273.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#181C59
RGBrgb(24, 28, 89)
HSLhsl(236, 58%, 22%)
HSVhsv(236, 73%, 35%)
CMYKcmyk(73%, 68.5%, 0%, 65.1%)
CIE-LABlab(14.09, 20.84, -37.29)
CIE-LCHlch(14.09, 42.72, 299.20°)
OKLaboklab(26.78% 0.0069 -0.1076)
OKLCHoklch(26.78% 0.108 273.6)
XYZxyz(2.5945, 1.7457, 9.6495)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C59 #595518
analogous
#183D59 #181C59 #351859
triadic
#181C59 #59181C #1C5918
tetradic
#181C59 #59183D #595518 #185935
square
#181C59 #59183D #595518 #185935
split-complementary
#181C59 #593518 #3D5918
monochromatic
#060818 #0B0D29 #181C59 #252B89 #323AB9

Accessibility & contrast

On white

15.56
#181C59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181C59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C59
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C59#FFFFFF#000000##FFFFFF
##181C591.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181c59;
/* rgb */ color: rgb(24, 28, 89);
/* oklch */ color: oklch(26.8% 0.108 273.6);
Tailwind
colors: {
  custom: {
    50: '#5f5889',
    500: '#181c59',
    950: '#000000',
  },
}
SCSS
$custom: #181c59;
$custom-light: #5f5889;
$custom-dark: #000000;
JSON
{
  "hex": "#181c59",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 89
  },
  "hsl": {
    "h": 236.308,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26785,
    "c": 0.10781,
    "h": 273.6
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#181C59
secondary
#908B3D
accent
#D747E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C59

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

Preview Lab → · Contrast checker → · Palette generator →

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