#180F4F#180F4F

#180F4F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.110 H 280.0°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#180F4F
RGBrgb(24, 15, 79)
HSLhsl(248, 68%, 18%)
HSVhsv(248, 81%, 31%)
CMYKcmyk(69.6%, 81%, 0%, 69%)
CIE-LABlab(9.80, 25.87, -37.52)
CIE-LCHlch(9.80, 45.57, 304.58°)
OKLaboklab(23.37% 0.0191 -0.1083)
OKLCHoklch(23.37% 0.11 280)
XYZxyz(1.9583, 1.1002, 7.5048)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F4F #464F0F
analogous
#0F264F #180F4F #380F4F
triadic
#180F4F #4F180F #0F4F18
tetradic
#180F4F #4F0F26 #464F0F #0F4F38
square
#180F4F #4F0F26 #464F0F #0F4F38
split-complementary
#180F4F #4F380F #264F0F
monochromatic
#08051A #08051C #180F4F #281982 #3723B6

Accessibility & contrast

On white

17.21
#180F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F4F
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F4F#FFFFFF#000000##FFFFFF
##180F4F1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180f4f;
/* rgb */ color: rgb(24, 15, 79);
/* oklch */ color: oklch(23.4% 0.110 280.0);
Tailwind
colors: {
  custom: {
    50: '#5e4e81',
    500: '#180f4f',
    950: '#000000',
  },
}
SCSS
$custom: #180f4f;
$custom-light: #5e4e81;
$custom-dark: #000000;
JSON
{
  "hex": "#180f4f",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 248.438,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23371,
    "c": 0.10995,
    "h": 280
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#180F4F
secondary
#7D8931
accent
#EB3DD2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #180F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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