#180C5A#180C5A

#180C5A is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.128 H 278.0°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#180C5A
RGBrgb(24, 12, 90)
HSLhsl(249, 76%, 20%)
HSVhsv(249, 87%, 35%)
CMYKcmyk(73.3%, 86.7%, 0%, 64.7%)
CIE-LABlab(10.52, 31.41, -43.84)
CIE-LCHlch(10.52, 53.93, 305.62°)
OKLaboklab(24.27% 0.0177 -0.1266)
OKLCHoklch(24.27% 0.128 278)
XYZxyz(2.3530, 1.1951, 9.7776)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C5A #4E5A0C
analogous
#0C275A #180C5A #3F0C5A
triadic
#180C5A #5A180C #0C5A18
tetradic
#180C5A #5A0C27 #4E5A0C #0C5A3F
square
#180C5A #5A0C27 #4E5A0C #0C5A3F
split-complementary
#180C5A #5A3F0C #275A0C
monochromatic
#07041B #0A0524 #180C5A #261390 #351AC6

Accessibility & contrast

On white

16.95
#180C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#180C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C5A
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C5A#FFFFFF#000000##FFFFFF
##180C5A1.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205C
Deuteranopia (green-blind)
#001959
Tritanopia (blue-blind)
#002433
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #180c5a;
/* rgb */ color: rgb(24, 12, 90);
/* oklch */ color: oklch(24.3% 0.128 278.0);
Tailwind
colors: {
  custom: {
    50: '#614d8a',
    500: '#180c5a',
    950: '#000000',
  },
}
SCSS
$custom: #180c5a;
$custom-light: #614d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#180c5a",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 90
  },
  "hsl": {
    "h": 249.231,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.24268,
    "c": 0.12787,
    "h": 278
  },
  "luminance": 0.01195
}

Semantic roles & 50–950 ramp

primary
#180C5A
secondary
#85952D
accent
#F335D6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06010C
muted
#7A777D

Preview Lab

Preview with #180C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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