#181C79#181C79

#181C79 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.153 H 271.0°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#181C79
RGBrgb(24, 28, 121)
HSLhsl(238, 67%, 28%)
HSVhsv(238, 80%, 47%)
CMYKcmyk(80.2%, 76.9%, 0%, 52.5%)
CIE-LABlab(17.48, 33.04, -52.70)
CIE-LCHlch(17.48, 62.20, 302.08°)
OKLaboklab(30.26% 0.0027 -0.1526)
OKLCHoklch(30.26% 0.153 271)
XYZxyz(4.2420, 2.4047, 18.3260)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C79 #797518
analogous
#184C79 #181C79 #441879
triadic
#181C79 #79181C #1C7918
tetradic
#181C79 #79184C #797518 #187944
square
#181C79 #79184C #797518 #187944
split-complementary
#181C79 #794418 #4C7918
monochromatic
#05061A #0E1046 #181C79 #2228AC #353BD7

Accessibility & contrast

On white

14.18
#181C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C79
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C79#FFFFFF#000000##FFFFFF
##181C791.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181c79;
/* rgb */ color: rgb(24, 28, 121);
/* oklch */ color: oklch(30.3% 0.153 271.0);
Tailwind
colors: {
  custom: {
    50: '#6859a1',
    500: '#181c79',
    950: '#000000',
  },
}
SCSS
$custom: #181c79;
$custom-light: #6859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181c79",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 237.526,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30255,
    "c": 0.15261,
    "h": 271
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#181C79
secondary
#AEA93F
accent
#E33EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181C79

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

Preview Lab → · Contrast checker → · Palette generator →

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