#180C5F#180C5F

#180C5F is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.134 H 276.9°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#180C5F
RGBrgb(24, 12, 95)
HSLhsl(249, 78%, 21%)
HSVhsv(249, 87%, 37%)
CMYKcmyk(74.7%, 87.4%, 0%, 62.7%)
CIE-LABlab(11.16, 33.08, -46.15)
CIE-LCHlch(11.16, 56.78, 305.63°)
OKLaboklab(24.89% 0.0161 -0.1333)
OKLCHoklch(24.89% 0.134 276.9)
XYZxyz(2.5730, 1.2831, 10.9363)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C5F #535F0C
analogous
#0C295F #180C5F #410C5F
triadic
#180C5F #5F180C #0C5F18
tetradic
#180C5F #5F0C29 #535F0C #0C5F41
square
#180C5F #5F0C29 #535F0C #0C5F41
split-complementary
#180C5F #5F410C #295F0C
monochromatic
#07031B #0A0529 #180C5F #261395 #331ACC

Accessibility & contrast

On white

16.71
#180C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#180C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C5F
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C5F#FFFFFF#000000##FFFFFF
##180C5F1.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001A5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #180c5f;
/* rgb */ color: rgb(24, 12, 95);
/* oklch */ color: oklch(24.9% 0.134 276.9);
Tailwind
colors: {
  custom: {
    50: '#624e8d',
    500: '#180c5f',
    950: '#000000',
  },
}
SCSS
$custom: #180c5f;
$custom-light: #624e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#180c5f",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 248.675,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24893,
    "c": 0.13432,
    "h": 276.9
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#180C5F
secondary
#8A992D
accent
#F434D8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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