#180F62#180F62

#180F62 is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.6% C 0.136 H 275.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#180F62
RGBrgb(24, 15, 98)
HSLhsl(247, 73%, 22%)
HSVhsv(247, 85%, 38%)
CMYKcmyk(75.5%, 84.7%, 0%, 61.6%)
CIE-LABlab(12.07, 32.52, -46.63)
CIE-LCHlch(12.07, 56.85, 304.89°)
OKLaboklab(25.64% 0.0138 -0.1348)
OKLCHoklch(25.64% 0.136 275.8)
XYZxyz(2.7514, 1.4174, 11.6815)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F62 #59620F
analogous
#0F3062 #180F62 #420F62
triadic
#180F62 #62180F #0F6218
tetradic
#180F62 #620F30 #59620F #0F6242
square
#180F62 #620F30 #59620F #0F6242
split-complementary
#180F62 #62420F #30620F
monochromatic
#06041B #0B072D #180F62 #251797 #321FCC

Accessibility & contrast

On white

16.36
#180F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#180F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F62
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F62#FFFFFF#000000##FFFFFF
##180F621.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002364
Deuteranopia (green-blind)
#001C61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #180f62;
/* rgb */ color: rgb(24, 15, 98);
/* oklch */ color: oklch(25.6% 0.136 275.8);
Tailwind
colors: {
  custom: {
    50: '#635090',
    500: '#180f62',
    950: '#000000',
  },
}
SCSS
$custom: #180f62;
$custom-light: #635090;
$custom-dark: #000000;
JSON
{
  "hex": "#180f62",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 98
  },
  "hsl": {
    "h": 246.506,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25639,
    "c": 0.13551,
    "h": 275.8
  },
  "luminance": 0.01418
}

Semantic roles & 50–950 ramp

primary
#180F62
secondary
#909B32
accent
#F038DC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #180F62

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

Preview Lab → · Contrast checker → · Palette generator →

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