#181D79#181D79

#181D79 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.152 H 270.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#181D79
RGBrgb(24, 29, 121)
HSLhsl(237, 67%, 28%)
HSVhsv(237, 80%, 47%)
CMYKcmyk(80.2%, 76%, 0%, 52.5%)
CIE-LABlab(17.70, 32.41, -52.33)
CIE-LCHlch(17.70, 61.56, 301.78°)
OKLaboklab(30.41% 0.0022 -0.1515)
OKLCHoklch(30.41% 0.152 270.8)
XYZxyz(4.2661, 2.4529, 18.3341)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D79 #797418
analogous
#184D79 #181D79 #431879
triadic
#181D79 #79181D #1D7918
tetradic
#181D79 #79184D #797418 #187943
square
#181D79 #79184D #797418 #187943
split-complementary
#181D79 #794318 #4D7918
monochromatic
#05061A #0E1146 #181D79 #2229AC #353DD7

Accessibility & contrast

On white

14.09
#181D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D79
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D79#FFFFFF#000000##FFFFFF
##181D791.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181d79;
/* rgb */ color: rgb(24, 29, 121);
/* oklch */ color: oklch(30.4% 0.152 270.8);
Tailwind
colors: {
  custom: {
    50: '#685aa1',
    500: '#181d79',
    950: '#000000',
  },
}
SCSS
$custom: #181d79;
$custom-light: #685aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#181d79",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 236.907,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30413,
    "c": 0.15155,
    "h": 270.8
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

primary
#181D79
secondary
#AEA83F
accent
#E13EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D79

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

Preview Lab → · Contrast checker → · Palette generator →

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