#180F6D#180F6D

#180F6D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 27.0% C 0.150 H 274.0°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#180F6D
RGBrgb(24, 15, 109)
HSLhsl(246, 76%, 24%)
HSVhsv(246, 86%, 43%)
CMYKcmyk(78%, 86.2%, 0%, 57.3%)
CIE-LABlab(13.47, 36.21, -51.57)
CIE-LCHlch(13.47, 63.01, 305.07°)
OKLaboklab(27.01% 0.0106 -0.1491)
OKLCHoklch(27.01% 0.15 274)
XYZxyz(3.3069, 1.6396, 14.6072)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F6D #646D0F
analogous
#0F356D #180F6D #470F6D
triadic
#180F6D #6D180F #0F6D18
tetradic
#180F6D #6D0F35 #646D0F #0F6D47
square
#180F6D #6D0F35 #646D0F #0F6D47
split-complementary
#180F6D #6D470F #356D0F
monochromatic
#06041B #0C0837 #180F6D #2416A3 #301ED9

Accessibility & contrast

On white

15.81
#180F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#180F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F6D
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F6D#FFFFFF#000000##FFFFFF
##180F6D1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002770
Deuteranopia (green-blind)
#001E6B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #180f6d;
/* rgb */ color: rgb(24, 15, 109);
/* oklch */ color: oklch(27.0% 0.150 274.0);
Tailwind
colors: {
  custom: {
    50: '#665198',
    500: '#180f6d',
    950: '#000000',
  },
}
SCSS
$custom: #180f6d;
$custom-light: #665198;
$custom-dark: #000000;
JSON
{
  "hex": "#180f6d",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 109
  },
  "hsl": {
    "h": 245.745,
    "s": 75.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27013,
    "c": 0.14952,
    "h": 274
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#180F6D
secondary
#9AA533
accent
#F235E0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #180F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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