#181A74#181A74

#181A74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.148 H 271.7°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#181A74
RGBrgb(24, 26, 116)
HSLhsl(239, 66%, 27%)
HSVhsv(239, 79%, 45%)
CMYKcmyk(79.3%, 77.6%, 0%, 54.5%)
CIE-LABlab(16.47, 32.45, -51.15)
CIE-LCHlch(16.47, 60.58, 302.39°)
OKLaboklab(29.37% 0.0044 -0.1481)
OKLCHoklch(29.37% 0.148 271.7)
XYZxyz(3.8974, 2.1935, 16.7376)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A74 #747218
analogous
#184874 #181A74 #441874
triadic
#181A74 #74181A #1A7418
tetradic
#181A74 #741848 #747218 #187444
square
#181A74 #741848 #747218 #187444
split-complementary
#181A74 #744418 #487418
monochromatic
#050619 #0E0F41 #181A74 #2225A7 #3235D5

Accessibility & contrast

On white

14.60
#181A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A74
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A74#FFFFFF#000000##FFFFFF
##181A741.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181a74;
/* rgb */ color: rgb(24, 26, 116);
/* oklch */ color: oklch(29.4% 0.148 271.7);
Tailwind
colors: {
  custom: {
    50: '#67589d',
    500: '#181a74',
    950: '#000000',
  },
}
SCSS
$custom: #181a74;
$custom-light: #67589d;
$custom-dark: #000000;
JSON
{
  "hex": "#181a74",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 238.696,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29367,
    "c": 0.14815,
    "h": 271.7
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#181A74
secondary
#A9A73F
accent
#E53FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181A74

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

Preview Lab → · Contrast checker → · Palette generator →

#181A74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva