#180C57#180C57

#180C57 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.9% C 0.124 H 278.7°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#180C57
RGBrgb(24, 12, 87)
HSLhsl(250, 76%, 19%)
HSVhsv(250, 86%, 34%)
CMYKcmyk(72.4%, 86.2%, 0%, 65.9%)
CIE-LABlab(10.15, 30.40, -42.42)
CIE-LCHlch(10.15, 52.19, 305.62°)
OKLaboklab(23.9% 0.0187 -0.1225)
OKLCHoklch(23.9% 0.124 278.7)
XYZxyz(2.2279, 1.1451, 9.1186)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C57 #4B570C
analogous
#0C2657 #180C57 #3E0C57
triadic
#180C57 #57180C #0C5718
tetradic
#180C57 #570C26 #4B570C #0C573E
square
#180C57 #570C26 #4B570C #0C573E
split-complementary
#180C57 #573E0C #26570C
monochromatic
#07041B #090521 #180C57 #27138D #361BC3

Accessibility & contrast

On white

17.09
#180C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C57
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C57#FFFFFF#000000##FFFFFF
##180C571.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F59
Deuteranopia (green-blind)
#001956
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #180c57;
/* rgb */ color: rgb(24, 12, 87);
/* oklch */ color: oklch(23.9% 0.124 278.7);
Tailwind
colors: {
  custom: {
    50: '#604d87',
    500: '#180c57',
    950: '#000000',
  },
}
SCSS
$custom: #180c57;
$custom-light: #604d87;
$custom-dark: #000000;
JSON
{
  "hex": "#180c57",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 249.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23897,
    "c": 0.12395,
    "h": 278.7
  },
  "luminance": 0.01145
}

Semantic roles & 50–950 ramp

primary
#180C57
secondary
#82922D
accent
#F235D4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05010B
muted
#7A777C

Preview Lab

Preview with #180C57

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

Preview Lab → · Contrast checker → · Palette generator →

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