#180C56#180C56

#180C56 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.8% C 0.123 H 278.9°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#180C56
RGBrgb(24, 12, 86)
HSLhsl(250, 76%, 19%)
HSVhsv(250, 86%, 34%)
CMYKcmyk(72.1%, 86%, 0%, 66.3%)
CIE-LABlab(10.02, 30.06, -41.95)
CIE-LCHlch(10.02, 51.61, 305.62°)
OKLaboklab(23.77% 0.019 -0.1211)
OKLCHoklch(23.77% 0.123 278.9)
XYZxyz(2.1873, 1.1288, 8.9049)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C56 #4A560C
analogous
#0C2556 #180C56 #3D0C56
triadic
#180C56 #56180C #0C5618
tetradic
#180C56 #560C25 #4A560C #0C563D
square
#180C56 #560C25 #4A560C #0C563D
split-complementary
#180C56 #563D0C #25560C
monochromatic
#07041B #090520 #180C56 #27138C #361BC1

Accessibility & contrast

On white

17.13
#180C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#180C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C56
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C56#FFFFFF#000000##FFFFFF
##180C561.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E58
Deuteranopia (green-blind)
#001955
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #180c56;
/* rgb */ color: rgb(24, 12, 86);
/* oklch */ color: oklch(23.8% 0.123 278.9);
Tailwind
colors: {
  custom: {
    50: '#604d87',
    500: '#180c56',
    950: '#000000',
  },
}
SCSS
$custom: #180c56;
$custom-light: #604d87;
$custom-dark: #000000;
JSON
{
  "hex": "#180c56",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 249.73,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.23774,
    "c": 0.12264,
    "h": 278.9
  },
  "luminance": 0.01129
}

Semantic roles & 50–950 ramp

primary
#180C56
secondary
#81912D
accent
#F236D4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05010B
muted
#7A777C

Preview Lab

Preview with #180C56

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

Preview Lab → · Contrast checker → · Palette generator →

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