#180D5F#180D5F

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

Color values

HEX#180D5F
RGBrgb(24, 13, 95)
HSLhsl(248, 76%, 21%)
HSVhsv(248, 86%, 37%)
CMYKcmyk(74.7%, 86.3%, 0%, 62.7%)
CIE-LABlab(11.33, 32.57, -45.86)
CIE-LCHlch(11.33, 56.24, 305.38°)
OKLaboklab(25.01% 0.0156 -0.1325)
OKLCHoklch(25.01% 0.133 276.7)
XYZxyz(2.5855, 1.3080, 10.9405)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D5F #545F0D
analogous
#0D2B5F #180D5F #410D5F
triadic
#180D5F #5F180D #0D5F18
tetradic
#180D5F #5F0D2B #545F0D #0D5F41
square
#180D5F #5F0D2B #545F0D #0D5F41
split-complementary
#180D5F #5F410D #2B5F0D
monochromatic
#07041B #0A0629 #180D5F #261495 #331CCB

Accessibility & contrast

On white

16.65
#180D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180D5F
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D5F#FFFFFF#000000##FFFFFF
##180D5F1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180d5f;
/* rgb */ color: rgb(24, 13, 95);
/* oklch */ color: oklch(25.0% 0.133 276.7);
Tailwind
colors: {
  custom: {
    50: '#624e8d',
    500: '#180d5f',
    950: '#000000',
  },
}
SCSS
$custom: #180d5f;
$custom-light: #624e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#180d5f",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 95
  },
  "hsl": {
    "h": 248.049,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25014,
    "c": 0.13344,
    "h": 276.7
  },
  "luminance": 0.01308
}

Semantic roles & 50–950 ramp

primary
#180D5F
secondary
#8B992F
accent
#F335D9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #180D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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