#180F71#180F71

#180F71 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.154 H 273.5°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#180F71
RGBrgb(24, 15, 113)
HSLhsl(246, 77%, 25%)
HSVhsv(246, 87%, 44%)
CMYKcmyk(78.8%, 86.7%, 0%, 55.7%)
CIE-LABlab(13.99, 37.52, -53.32)
CIE-LCHlch(13.99, 65.20, 305.13°)
OKLaboklab(27.52% 0.0094 -0.1542)
OKLCHoklch(27.52% 0.155 273.5)
XYZxyz(3.5272, 1.7277, 15.7672)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F71 #68710F
analogous
#0F3771 #180F71 #490F71
triadic
#180F71 #71180F #0F7118
tetradic
#180F71 #710F37 #68710F #0F7149
square
#180F71 #710F37 #68710F #0F7149
split-complementary
#180F71 #71490F #37710F
monochromatic
#06041B #0D083B #180F71 #2316A7 #2F1DDD

Accessibility & contrast

On white

15.61
#180F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#180F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F71
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F71#FFFFFF#000000##FFFFFF
##180F711.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002874
Deuteranopia (green-blind)
#001F6F
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #180f71;
/* rgb */ color: rgb(24, 15, 113);
/* oklch */ color: oklch(27.5% 0.154 273.5);
Tailwind
colors: {
  custom: {
    50: '#67519b',
    500: '#180f71',
    950: '#000000',
  },
}
SCSS
$custom: #180f71;
$custom-light: #67519b;
$custom-dark: #000000;
JSON
{
  "hex": "#180f71",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 113
  },
  "hsl": {
    "h": 245.51,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27521,
    "c": 0.1545,
    "h": 273.5
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#180F71
secondary
#9EA933
accent
#F335E2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #180F71

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

Preview Lab → · Contrast checker → · Palette generator →

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