#180F5B#180F5B

#180F5B is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.8% C 0.126 H 277.2°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#180F5B
RGBrgb(24, 15, 91)
HSLhsl(247, 72%, 21%)
HSVhsv(247, 84%, 36%)
CMYKcmyk(73.6%, 83.5%, 0%, 64.3%)
CIE-LABlab(11.21, 30.11, -43.37)
CIE-LCHlch(11.21, 52.79, 304.77°)
OKLaboklab(24.79% 0.0158 -0.1253)
OKLCHoklch(24.79% 0.126 277.2)
XYZxyz(2.4352, 1.2910, 10.0163)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F5B #525B0F
analogous
#0F2C5B #180F5B #3E0F5B
triadic
#180F5B #5B180F #0F5B18
tetradic
#180F5B #5B0F2C #525B0F #0F5B3E
square
#180F5B #5B0F2C #525B0F #0F5B3E
split-complementary
#180F5B #5B3E0F #2C5B0F
monochromatic
#07041A #0A0626 #180F5B #261890 #3420C4

Accessibility & contrast

On white

16.69
#180F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180F5B
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F5B#FFFFFF#000000##FFFFFF
##180F5B1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#001B5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #180f5b;
/* rgb */ color: rgb(24, 15, 91);
/* oklch */ color: oklch(24.8% 0.126 277.2);
Tailwind
colors: {
  custom: {
    50: '#614f8a',
    500: '#180f5b',
    950: '#000000',
  },
}
SCSS
$custom: #180f5b;
$custom-light: #614f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#180f5b",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 247.105,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24785,
    "c": 0.12631,
    "h": 277.2
  },
  "luminance": 0.01291
}

Semantic roles & 50–950 ramp

primary
#180F5B
secondary
#899531
accent
#EE39D9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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