#180F56#180F56

#180F56 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.2% C 0.120 H 278.3°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#180F56
RGBrgb(24, 15, 86)
HSLhsl(248, 70%, 20%)
HSVhsv(248, 83%, 34%)
CMYKcmyk(72.1%, 82.6%, 0%, 66.3%)
CIE-LABlab(10.61, 28.36, -40.97)
CIE-LCHlch(10.61, 49.83, 304.69°)
OKLaboklab(24.19% 0.0172 -0.1183)
OKLCHoklch(24.19% 0.12 278.3)
XYZxyz(2.2267, 1.2075, 8.9180)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F56 #4D560F
analogous
#0F2956 #180F56 #3C0F56
triadic
#180F56 #56180F #0F5618
tetradic
#180F56 #560F29 #4D560F #0F563C
square
#180F56 #560F29 #4D560F #0F563C
split-complementary
#180F56 #563C0F #29560F
monochromatic
#07051A #090622 #180F56 #27188A #3521BE

Accessibility & contrast

On white

16.91
#180F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180F56
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F56#FFFFFF#000000##FFFFFF
##180F561.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F58
Deuteranopia (green-blind)
#001A55
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #180f56;
/* rgb */ color: rgb(24, 15, 86);
/* oklch */ color: oklch(24.2% 0.120 278.3);
Tailwind
colors: {
  custom: {
    50: '#604f86',
    500: '#180f56',
    950: '#000000',
  },
}
SCSS
$custom: #180f56;
$custom-light: #604f86;
$custom-dark: #000000;
JSON
{
  "hex": "#180f56",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 247.606,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24187,
    "c": 0.11959,
    "h": 278.3
  },
  "luminance": 0.01208
}

Semantic roles & 50–950 ramp

primary
#180F56
secondary
#849031
accent
#ED3BD6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05020B
muted
#7A787C

Preview Lab

Preview with #180F56

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

Preview Lab → · Contrast checker → · Palette generator →

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