#180F5E#180F5E

#180F5E is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.1% C 0.130 H 276.6°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#180F5E
RGBrgb(24, 15, 94)
HSLhsl(247, 72%, 21%)
HSVhsv(247, 84%, 37%)
CMYKcmyk(74.5%, 84%, 0%, 63.1%)
CIE-LABlab(11.58, 31.15, -44.78)
CIE-LCHlch(11.58, 54.54, 304.82°)
OKLaboklab(25.15% 0.015 -0.1294)
OKLCHoklch(25.15% 0.13 276.6)
XYZxyz(2.5672, 1.3438, 10.7116)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F5E #555E0F
analogous
#0F2E5E #180F5E #400F5E
triadic
#180F5E #5E180F #0F5E18
tetradic
#180F5E #5E0F2E #555E0F #0F5E40
square
#180F5E #5E0F2E #555E0F #0F5E40
split-complementary
#180F5E #5E400F #2E5E0F
monochromatic
#07041A #0B0729 #180F5E #251793 #3320C8

Accessibility & contrast

On white

16.55
#180F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180F5E
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F5E#FFFFFF#000000##FFFFFF
##180F5E1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002260
Deuteranopia (green-blind)
#001B5D
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #180f5e;
/* rgb */ color: rgb(24, 15, 94);
/* oklch */ color: oklch(25.1% 0.130 276.6);
Tailwind
colors: {
  custom: {
    50: '#624f8d',
    500: '#180f5e',
    950: '#000000',
  },
}
SCSS
$custom: #180f5e;
$custom-light: #624f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#180f5e",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 246.835,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25149,
    "c": 0.13028,
    "h": 276.6
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #180F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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