#181879#181879

#181879 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.157 H 271.6°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#181879
RGBrgb(24, 24, 121)
HSLhsl(240, 67%, 28%)
HSVhsv(240, 80%, 47%)
CMYKcmyk(80.2%, 80.2%, 0%, 52.5%)
CIE-LABlab(16.64, 35.43, -54.09)
CIE-LCHlch(16.64, 64.66, 303.22°)
OKLaboklab(29.66% 0.0043 -0.1566)
OKLCHoklch(29.66% 0.157 271.6)
XYZxyz(4.1533, 2.2275, 18.2965)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181879 #797918
analogous
#184879 #181879 #481879
triadic
#181879 #791818 #187918
tetradic
#181879 #791848 #797918 #187948
square
#181879 #791848 #797918 #187948
split-complementary
#181879 #794818 #487918
monochromatic
#05051A #0E0E46 #181879 #2222AC #3535D7

Accessibility & contrast

On white

14.53
#181879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181879
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181879#FFFFFF#000000##FFFFFF
##1818791.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181879;
/* rgb */ color: rgb(24, 24, 121);
/* oklch */ color: oklch(29.7% 0.157 271.6);
Tailwind
colors: {
  custom: {
    50: '#6857a1',
    500: '#181879',
    950: '#000000',
  },
}
SCSS
$custom: #181879;
$custom-light: #6857a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181879",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29658,
    "c": 0.15666,
    "h": 271.6
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#181879
secondary
#AEAE3F
accent
#EA3EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181879

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

Preview Lab → · Contrast checker → · Palette generator →

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