#180D5C#180D5C

#180D5C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.130 H 277.4°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#180D5C
RGBrgb(24, 13, 92)
HSLhsl(248, 75%, 21%)
HSVhsv(248, 86%, 36%)
CMYKcmyk(73.9%, 85.9%, 0%, 63.9%)
CIE-LABlab(10.95, 31.56, -44.47)
CIE-LCHlch(10.95, 54.53, 305.36°)
OKLaboklab(24.64% 0.0166 -0.1285)
OKLCHoklch(24.64% 0.13 277.4)
XYZxyz(2.4518, 1.2545, 10.2361)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D5C #515C0D
analogous
#0D2A5C #180D5C #3F0D5C
triadic
#180D5C #5C180D #0D5C18
tetradic
#180D5C #5C0D2A #515C0D #0D5C3F
square
#180D5C #5C0D2A #515C0D #0D5C3F
split-complementary
#180D5C #5C3F0D #2A5C0D
monochromatic
#07041B #0A0526 #180D5C #261592 #341CC7

Accessibility & contrast

On white

16.79
#180D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#180D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D5C
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D5C#FFFFFF#000000##FFFFFF
##180D5C1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002535
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #180d5c;
/* rgb */ color: rgb(24, 13, 92);
/* oklch */ color: oklch(24.6% 0.130 277.4);
Tailwind
colors: {
  custom: {
    50: '#614e8b',
    500: '#180d5c',
    950: '#000000',
  },
}
SCSS
$custom: #180d5c;
$custom-light: #614e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#180d5c",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 248.354,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24641,
    "c": 0.12956,
    "h": 277.4
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#180D5C
secondary
#88962F
accent
#F236D8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180D5C

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

Preview Lab → · Contrast checker → · Palette generator →

#180D5C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva