#182778#182778

#182778 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.138 H 268.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#182778
RGBrgb(24, 39, 120)
HSLhsl(231, 67%, 28%)
HSVhsv(231, 80%, 47%)
CMYKcmyk(80%, 67.5%, 0%, 52.9%)
CIE-LABlab(20.05, 25.39, -47.84)
CIE-LCHlch(20.05, 54.16, 297.96°)
OKLaboklab(32.08% -0.0031 -0.1384)
OKLCHoklch(32.08% 0.138 268.7)
XYZxyz(4.4912, 3.0008, 18.1082)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182778 #786918
analogous
#185778 #182778 #391878
triadic
#182778 #781827 #277818
tetradic
#182778 #781857 #786918 #187839
square
#182778 #781857 #786918 #187839
split-complementary
#182778 #783918 #577818
monochromatic
#05081A #0E1645 #182778 #2238AB #344DD6

Accessibility & contrast

On white

13.12
#182778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#182778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182778
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182778#FFFFFF#000000##FFFFFF
##1827781.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #182778;
/* rgb */ color: rgb(24, 39, 120);
/* oklch */ color: oklch(32.1% 0.138 268.7);
Tailwind
colors: {
  custom: {
    50: '#6661a0',
    500: '#182778',
    950: '#000000',
  },
}
SCSS
$custom: #182778;
$custom-light: #6661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#182778",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 230.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32078,
    "c": 0.13843,
    "h": 268.7
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#182778
secondary
#AD9C3F
accent
#CF3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #182778

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

Preview Lab → · Contrast checker → · Palette generator →

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