#180F4E#180F4E

#180F4E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.109 H 280.3°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#180F4E
RGBrgb(24, 15, 78)
HSLhsl(249, 68%, 18%)
HSVhsv(249, 81%, 31%)
CMYKcmyk(69.2%, 80.8%, 0%, 69.4%)
CIE-LABlab(9.69, 25.51, -37.02)
CIE-LCHlch(9.69, 44.96, 304.57°)
OKLaboklab(23.26% 0.0194 -0.1068)
OKLCHoklch(23.26% 0.109 280.3)
XYZxyz(1.9222, 1.0857, 7.3145)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F4E #454E0F
analogous
#0F254E #180F4E #370F4E
triadic
#180F4E #4E180F #0F4E18
tetradic
#180F4E #4E0F25 #454E0F #0F4E37
square
#180F4E #4E0F25 #454E0F #0F4E37
split-complementary
#180F4E #4E370F #254E0F
monochromatic
#08051A #08051B #180F4E #281981 #3823B5

Accessibility & contrast

On white

17.25
#180F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F4E
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F4E#FFFFFF#000000##FFFFFF
##180F4E1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180f4e;
/* rgb */ color: rgb(24, 15, 78);
/* oklch */ color: oklch(23.3% 0.109 280.3);
Tailwind
colors: {
  custom: {
    50: '#5e4e80',
    500: '#180f4e',
    950: '#000000',
  },
}
SCSS
$custom: #180f4e;
$custom-light: #5e4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#180f4e",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 248.571,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23257,
    "c": 0.10855,
    "h": 280.3
  },
  "luminance": 0.01086
}

Semantic roles & 50–950 ramp

primary
#180F4E
secondary
#7C8831
accent
#EB3DD2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #180F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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