#181A54#181A54

#181A54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.103 H 275.0°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#181A54
RGBrgb(24, 26, 84)
HSLhsl(238, 56%, 21%)
HSVhsv(238, 71%, 33%)
CMYKcmyk(71.4%, 69%, 0%, 67.1%)
CIE-LABlab(13.06, 20.30, -35.59)
CIE-LCHlch(13.06, 40.97, 299.70°)
OKLaboklab(25.88% 0.009 -0.1026)
OKLCHoklch(25.88% 0.103 275)
XYZxyz(2.3458, 1.5729, 8.5658)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A54 #545218
analogous
#183854 #181A54 #341854
triadic
#181A54 #54181A #1A5418
tetradic
#181A54 #541838 #545218 #185434
square
#181A54 #541838 #545218 #185434
split-complementary
#181A54 #543418 #385418
monochromatic
#070718 #0A0B24 #181A54 #262984 #3337B3

Accessibility & contrast

On white

15.97
#181A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A54
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A54#FFFFFF#000000##FFFFFF
##181A541.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181a54;
/* rgb */ color: rgb(24, 26, 84);
/* oklch */ color: oklch(25.9% 0.103 275.0);
Tailwind
colors: {
  custom: {
    50: '#5e5685',
    500: '#181a54',
    950: '#000000',
  },
}
SCSS
$custom: #181a54;
$custom-light: #5e5685;
$custom-dark: #000000;
JSON
{
  "hex": "#181a54",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 238,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25882,
    "c": 0.10301,
    "h": 275
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#181A54
secondary
#8B883D
accent
#DA49DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A54

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

Preview Lab → · Contrast checker → · Palette generator →

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