#180F5F#180F5F

#180F5F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.132 H 276.4°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#180F5F
RGBrgb(24, 15, 95)
HSLhsl(247, 73%, 22%)
HSVhsv(247, 84%, 37%)
CMYKcmyk(74.7%, 84.2%, 0%, 62.7%)
CIE-LABlab(11.70, 31.49, -45.24)
CIE-LCHlch(11.70, 55.13, 304.84°)
OKLaboklab(25.27% 0.0147 -0.1308)
OKLCHoklch(25.27% 0.132 276.4)
XYZxyz(2.6124, 1.3618, 10.9494)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F5F #565F0F
analogous
#0F2E5F #180F5F #400F5F
triadic
#180F5F #5F180F #0F5F18
tetradic
#180F5F #5F0F2E #565F0F #0F5F40
square
#180F5F #5F0F2E #565F0F #0F5F40
split-complementary
#180F5F #5F400F #2E5F0F
monochromatic
#07041A #0B072A #180F5F #251794 #3320C9

Accessibility & contrast

On white

16.50
#180F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180F5F
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F5F#FFFFFF#000000##FFFFFF
##180F5F1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #180f5f;
/* rgb */ color: rgb(24, 15, 95);
/* oklch */ color: oklch(25.3% 0.132 276.4);
Tailwind
colors: {
  custom: {
    50: '#62508d',
    500: '#180f5f',
    950: '#000000',
  },
}
SCSS
$custom: #180f5f;
$custom-light: #62508d;
$custom-dark: #000000;
JSON
{
  "hex": "#180f5f",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 246.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25271,
    "c": 0.1316,
    "h": 276.4
  },
  "luminance": 0.01362
}

Semantic roles & 50–950 ramp

primary
#180F5F
secondary
#8D9832
accent
#EF38DB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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