#180F6A#180F6A

#180F6A is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.146 H 274.5°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#180F6A
RGBrgb(24, 15, 106)
HSLhsl(246, 75%, 24%)
HSVhsv(246, 86%, 42%)
CMYKcmyk(77.4%, 85.8%, 0%, 58.4%)
CIE-LABlab(13.08, 35.21, -50.25)
CIE-LCHlch(13.08, 61.36, 305.02°)
OKLaboklab(26.64% 0.0114 -0.1453)
OKLCHoklch(26.64% 0.146 274.5)
XYZxyz(3.1482, 1.5761, 13.7712)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F6A #616A0F
analogous
#0F336A #180F6A #450F6A
triadic
#180F6A #6A180F #0F6A18
tetradic
#180F6A #6A0F33 #616A0F #0F6A45
square
#180F6A #6A0F33 #616A0F #0F6A45
split-complementary
#180F6A #6A450F #336A0F
monochromatic
#06041B #0C0734 #180F6A #2417A0 #301ED5

Accessibility & contrast

On white

15.97
#180F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#180F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F6A
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F6A#FFFFFF#000000##FFFFFF
##180F6A1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266C
Deuteranopia (green-blind)
#001D68
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #180f6a;
/* rgb */ color: rgb(24, 15, 106);
/* oklch */ color: oklch(26.6% 0.146 274.5);
Tailwind
colors: {
  custom: {
    50: '#655096',
    500: '#180f6a',
    950: '#000000',
  },
}
SCSS
$custom: #180f6a;
$custom-light: #655096;
$custom-dark: #000000;
JSON
{
  "hex": "#180f6a",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 245.934,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.14575,
    "h": 274.5
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#180F6A
secondary
#97A232
accent
#F236DF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #180F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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