#182F78#182F78

#182F78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.128 H 266.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#182F78
RGBrgb(24, 47, 120)
HSLhsl(226, 67%, 28%)
HSVhsv(226, 80%, 47%)
CMYKcmyk(80%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.24, 19.75, -44.25)
CIE-LCHlch(22.24, 48.46, 294.06°)
OKLaboklab(33.7% -0.0085 -0.1278)
OKLCHoklch(33.7% 0.128 266.2)
XYZxyz(4.7822, 3.5827, 18.2052)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F78 #786118
analogous
#185F78 #182F78 #311878
triadic
#182F78 #78182F #2F7818
tetradic
#182F78 #78185F #786118 #187831
square
#182F78 #78185F #786118 #187831
split-complementary
#182F78 #783118 #5F7818
monochromatic
#050A1A #0E1B45 #182F78 #2243AB #345BD6

Accessibility & contrast

On white

12.23
#182F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#182F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F78
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F78#FFFFFF#000000##FFFFFF
##182F781.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182f78;
/* rgb */ color: rgb(24, 47, 120);
/* oklch */ color: oklch(33.7% 0.128 266.2);
Tailwind
colors: {
  custom: {
    50: '#6667a0',
    500: '#182f78',
    950: '#000000',
  },
}
SCSS
$custom: #182f78;
$custom-light: #6667a0;
$custom-dark: #000000;
JSON
{
  "hex": "#182f78",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 225.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33704,
    "c": 0.12808,
    "h": 266.2
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#182F78
secondary
#AD933F
accent
#C13EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #182F78

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

Preview Lab → · Contrast checker → · Palette generator →

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