#180F57#180F57

#180F57 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.121 H 278.1°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#180F57
RGBrgb(24, 15, 87)
HSLhsl(248, 71%, 20%)
HSVhsv(248, 83%, 34%)
CMYKcmyk(72.4%, 82.8%, 0%, 65.9%)
CIE-LABlab(10.73, 28.71, -41.45)
CIE-LCHlch(10.73, 50.43, 304.70°)
OKLaboklab(24.31% 0.017 -0.1197)
OKLCHoklch(24.31% 0.121 278.1)
XYZxyz(2.2673, 1.2238, 9.1317)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F57 #4E570F
analogous
#0F2A57 #180F57 #3C0F57
triadic
#180F57 #57180F #0F5718
tetradic
#180F57 #570F2A #4E570F #0F573C
square
#180F57 #570F2A #4E570F #0F573C
split-complementary
#180F57 #573C0F #2A570F
monochromatic
#07051A #0A0623 #180F57 #26188B #3521BF

Accessibility & contrast

On white

16.87
#180F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#180F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F57
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F57#FFFFFF#000000##FFFFFF
##180F571.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002059
Deuteranopia (green-blind)
#001A56
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #180f57;
/* rgb */ color: rgb(24, 15, 87);
/* oklch */ color: oklch(24.3% 0.121 278.1);
Tailwind
colors: {
  custom: {
    50: '#604f87',
    500: '#180f57',
    950: '#000000',
  },
}
SCSS
$custom: #180f57;
$custom-light: #604f87;
$custom-dark: #000000;
JSON
{
  "hex": "#180f57",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 247.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.24306,
    "c": 0.12095,
    "h": 278.1
  },
  "luminance": 0.01224
}

Semantic roles & 50–950 ramp

primary
#180F57
secondary
#859131
accent
#ED3AD7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #180F57

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

Preview Lab → · Contrast checker → · Palette generator →

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