#180F5D#180F5D

#180F5D is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.0% C 0.129 H 276.8°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#180F5D
RGBrgb(24, 15, 93)
HSLhsl(247, 72%, 21%)
HSVhsv(247, 84%, 36%)
CMYKcmyk(74.2%, 83.9%, 0%, 63.5%)
CIE-LABlab(11.46, 30.80, -44.31)
CIE-LCHlch(11.46, 53.97, 304.81°)
OKLaboklab(25.03% 0.0153 -0.1281)
OKLCHoklch(25.03% 0.129 276.8)
XYZxyz(2.5227, 1.3259, 10.4768)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F5D #545D0F
analogous
#0F2D5D #180F5D #3F0F5D
triadic
#180F5D #5D180F #0F5D18
tetradic
#180F5D #5D0F2D #545D0F #0F5D3F
square
#180F5D #5D0F2D #545D0F #0F5D3F
split-complementary
#180F5D #5D3F0F #2D5D0F
monochromatic
#07041A #0A0628 #180F5D #261792 #3320C6

Accessibility & contrast

On white

16.60
#180F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#180F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F5D
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F5D#FFFFFF#000000##FFFFFF
##180F5D1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001B5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #180f5d;
/* rgb */ color: rgb(24, 15, 93);
/* oklch */ color: oklch(25.0% 0.129 276.8);
Tailwind
colors: {
  custom: {
    50: '#614f8c',
    500: '#180f5d',
    950: '#000000',
  },
}
SCSS
$custom: #180f5d;
$custom-light: #614f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#180f5d",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 246.923,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25027,
    "c": 0.12896,
    "h": 276.8
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#180F5D
secondary
#8B9631
accent
#EF39DA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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