#180F4C#180F4C

#180F4C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.106 H 280.8°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#180F4C
RGBrgb(24, 15, 76)
HSLhsl(249, 67%, 18%)
HSVhsv(249, 80%, 30%)
CMYKcmyk(68.4%, 80.3%, 0%, 70.2%)
CIE-LABlab(9.46, 24.79, -36.00)
CIE-LCHlch(9.46, 43.71, 304.55°)
OKLaboklab(23.03% 0.0199 -0.1038)
OKLCHoklch(23.03% 0.106 280.8)
XYZxyz(1.8516, 1.0575, 6.9426)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F4C #434C0F
analogous
#0F254C #180F4C #360F4C
triadic
#180F4C #4C180F #0F4C18
tetradic
#180F4C #4C0F25 #434C0F #0F4C36
square
#180F4C #4C0F25 #434C0F #0F4C36
split-complementary
#180F4C #4C360F #254C0F
monochromatic
#08051A #08051A #180F4C #28197F #3823B2

Accessibility & contrast

On white

17.33
#180F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F4C
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F4C#FFFFFF#000000##FFFFFF
##180F4C1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180f4c;
/* rgb */ color: rgb(24, 15, 76);
/* oklch */ color: oklch(23.0% 0.106 280.8);
Tailwind
colors: {
  custom: {
    50: '#5d4e7f',
    500: '#180f4c',
    950: '#000000',
  },
}
SCSS
$custom: #180f4c;
$custom-light: #5d4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#180f4c",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 248.852,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23029,
    "c": 0.10573,
    "h": 280.8
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#180F4C
secondary
#7A8631
accent
#EA3ED1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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