#180F66#180F66

#180F66 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.141 H 275.1°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#180F66
RGBrgb(24, 15, 102)
HSLhsl(246, 74%, 23%)
HSVhsv(246, 85%, 40%)
CMYKcmyk(76.5%, 85.3%, 0%, 60%)
CIE-LABlab(12.58, 33.87, -48.45)
CIE-LCHlch(12.58, 59.12, 304.96°)
OKLaboklab(26.14% 0.0126 -0.1401)
OKLCHoklch(26.14% 0.141 275.1)
XYZxyz(2.9450, 1.4949, 12.7011)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F66 #5D660F
analogous
#0F3166 #180F66 #430F66
triadic
#180F66 #66180F #0F6618
tetradic
#180F66 #660F31 #5D660F #0F6643
square
#180F66 #660F31 #5D660F #0F6643
split-complementary
#180F66 #66430F #31660F
monochromatic
#06041B #0B0731 #180F66 #25179B #311FD1

Accessibility & contrast

On white

16.17
#180F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#180F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F66
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F66#FFFFFF#000000##FFFFFF
##180F661.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002468
Deuteranopia (green-blind)
#001D65
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #180f66;
/* rgb */ color: rgb(24, 15, 102);
/* oklch */ color: oklch(26.1% 0.141 275.1);
Tailwind
colors: {
  custom: {
    50: '#645093',
    500: '#180f66',
    950: '#000000',
  },
}
SCSS
$custom: #180f66;
$custom-light: #645093;
$custom-dark: #000000;
JSON
{
  "hex": "#180f66",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 102
  },
  "hsl": {
    "h": 246.207,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26135,
    "c": 0.14067,
    "h": 275.1
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

primary
#180F66
secondary
#939F32
accent
#F137DE
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #180F66

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

Preview Lab → · Contrast checker → · Palette generator →

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