#182A78#182A78

#182A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.135 H 267.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#182A78
RGBrgb(24, 42, 120)
HSLhsl(229, 67%, 28%)
HSVhsv(229, 80%, 47%)
CMYKcmyk(80%, 65%, 0%, 52.9%)
CIE-LABlab(20.85, 23.29, -46.52)
CIE-LCHlch(20.85, 52.03, 296.60°)
OKLaboklab(32.67% -0.005 -0.1345)
OKLCHoklch(32.67% 0.135 267.9)
XYZxyz(4.5936, 3.2057, 18.1423)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A78 #786618
analogous
#185A78 #182A78 #361878
triadic
#182A78 #78182A #2A7818
tetradic
#182A78 #78185A #786618 #187836
square
#182A78 #78185A #786618 #187836
split-complementary
#182A78 #783618 #5A7818
monochromatic
#05091A #0E1845 #182A78 #223CAB #3452D6

Accessibility & contrast

On white

12.80
#182A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#182A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A78
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A78#FFFFFF#000000##FFFFFF
##182A781.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #182a78;
/* rgb */ color: rgb(24, 42, 120);
/* oklch */ color: oklch(32.7% 0.135 267.9);
Tailwind
colors: {
  custom: {
    50: '#6663a0',
    500: '#182a78',
    950: '#000000',
  },
}
SCSS
$custom: #182a78;
$custom-light: #6663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#182a78",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 228.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.13461,
    "h": 267.9
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#182A78
secondary
#AD983F
accent
#C93EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #182A78

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

Preview Lab → · Contrast checker → · Palette generator →

#182A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva