#181579#181579

#181579 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.159 H 271.9°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#181579
RGBrgb(24, 21, 121)
HSLhsl(242, 70%, 28%)
HSVhsv(242, 83%, 47%)
CMYKcmyk(80.2%, 82.6%, 0%, 52.5%)
CIE-LABlab(16.06, 37.11, -55.06)
CIE-LCHlch(16.06, 66.39, 303.98°)
OKLaboklab(29.25% 0.0054 -0.1593)
OKLCHoklch(29.25% 0.159 271.9)
XYZxyz(4.0949, 2.1105, 18.2770)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181579 #767915
analogous
#154479 #181579 #4A1579
triadic
#181579 #791815 #157918
tetradic
#181579 #791544 #767915 #15794A
square
#181579 #791544 #767915 #15794A
split-complementary
#181579 #794A15 #447915
monochromatic
#05051A #0E0C45 #181579 #221EAD #332EDB

Accessibility & contrast

On white

14.77
#181579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181579
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181579#FFFFFF#000000##FFFFFF
##1815791.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002377
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181579;
/* rgb */ color: rgb(24, 21, 121);
/* oklch */ color: oklch(29.3% 0.159 271.9);
Tailwind
colors: {
  custom: {
    50: '#6855a1',
    500: '#181579',
    950: '#000000',
  },
}
SCSS
$custom: #181579;
$custom-light: #6855a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181579",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 241.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2925,
    "c": 0.15944,
    "h": 271.9
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#181579
secondary
#ABAF3B
accent
#ED3BE8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181579

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

Preview Lab → · Contrast checker → · Palette generator →

#181579 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva