#180F4B#180F4B

#180F4B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.104 H 281.1°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#180F4B
RGBrgb(24, 15, 75)
HSLhsl(249, 67%, 18%)
HSVhsv(249, 80%, 29%)
CMYKcmyk(68%, 80%, 0%, 70.6%)
CIE-LABlab(9.35, 24.43, -35.49)
CIE-LCHlch(9.35, 43.08, 304.54°)
OKLaboklab(22.92% 0.0201 -0.1023)
OKLCHoklch(22.92% 0.104 281.1)
XYZxyz(1.8171, 1.0437, 6.7609)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F4B #424B0F
analogous
#0F244B #180F4B #360F4B
triadic
#180F4B #4B180F #0F4B18
tetradic
#180F4B #4B0F24 #424B0F #0F4B36
square
#180F4B #4B0F24 #424B0F #0F4B36
split-complementary
#180F4B #4B360F #244B0F
monochromatic
#08051A #08051A #180F4B #28197E #3923B1

Accessibility & contrast

On white

17.37
#180F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180F4B
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F4B#FFFFFF#000000##FFFFFF
##180F4B1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180f4b;
/* rgb */ color: rgb(24, 15, 75);
/* oklch */ color: oklch(22.9% 0.104 281.1);
Tailwind
colors: {
  custom: {
    50: '#5d4e7e',
    500: '#180f4b',
    950: '#000000',
  },
}
SCSS
$custom: #180f4b;
$custom-light: #5d4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#180f4b",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 249,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22917,
    "c": 0.1043,
    "h": 281.1
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#180F4B
secondary
#798530
accent
#EA3ED0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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