#180F52#180F52

#180F52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.7% C 0.114 H 279.2°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#180F52
RGBrgb(24, 15, 82)
HSLhsl(248, 69%, 19%)
HSVhsv(248, 82%, 32%)
CMYKcmyk(70.7%, 81.7%, 0%, 67.8%)
CIE-LABlab(10.14, 26.94, -39.01)
CIE-LCHlch(10.14, 47.41, 304.63°)
OKLaboklab(23.72% 0.0183 -0.1126)
OKLCHoklch(23.72% 0.114 279.2)
XYZxyz(2.0700, 1.1449, 8.0929)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F52 #49520F
analogous
#0F2852 #180F52 #3A0F52
triadic
#180F52 #52180F #0F5218
tetradic
#180F52 #520F28 #49520F #0F523A
square
#180F52 #520F28 #49520F #0F523A
split-complementary
#180F52 #523A0F #28520F
monochromatic
#08051A #09061E #180F52 #271886 #3622B9

Accessibility & contrast

On white

17.09
#180F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#180F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F52
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F52#FFFFFF#000000##FFFFFF
##180F521.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E54
Deuteranopia (green-blind)
#001951
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #180f52;
/* rgb */ color: rgb(24, 15, 82);
/* oklch */ color: oklch(23.7% 0.114 279.2);
Tailwind
colors: {
  custom: {
    50: '#5f4f83',
    500: '#180f52',
    950: '#000000',
  },
}
SCSS
$custom: #180f52;
$custom-light: #5f4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#180f52",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 248.06,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23718,
    "c": 0.11411,
    "h": 279.2
  },
  "luminance": 0.01145
}

Semantic roles & 50–950 ramp

primary
#180F52
secondary
#808C31
accent
#EC3CD4
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #180F52

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

Preview Lab → · Contrast checker → · Palette generator →

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