#182978#182978

#182978 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.136 H 268.2°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#182978
RGBrgb(24, 41, 120)
HSLhsl(229, 67%, 28%)
HSVhsv(229, 80%, 47%)
CMYKcmyk(80%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.58, 24.00, -46.96)
CIE-LCHlch(20.58, 52.74, 297.06°)
OKLaboklab(32.47% -0.0044 -0.1358)
OKLCHoklch(32.47% 0.136 268.2)
XYZxyz(4.5586, 3.1356, 18.1306)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182978 #786718
analogous
#185978 #182978 #371878
triadic
#182978 #781829 #297818
tetradic
#182978 #781859 #786718 #187837
square
#182978 #781859 #786718 #187837
split-complementary
#182978 #783718 #597818
monochromatic
#05091A #0E1845 #182978 #223AAB #3451D6

Accessibility & contrast

On white

12.91
#182978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#182978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182978
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182978#FFFFFF#000000##FFFFFF
##1829781.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #182978;
/* rgb */ color: rgb(24, 41, 120);
/* oklch */ color: oklch(32.5% 0.136 268.2);
Tailwind
colors: {
  custom: {
    50: '#6662a0',
    500: '#182978',
    950: '#000000',
  },
}
SCSS
$custom: #182978;
$custom-light: #6662a0;
$custom-dark: #000000;
JSON
{
  "hex": "#182978",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 229.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32469,
    "c": 0.1359,
    "h": 268.2
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#182978
secondary
#AD993F
accent
#CB3EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #182978

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

Preview Lab → · Contrast checker → · Palette generator →

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