#1A1878#1A1878

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

Color values

HEX#1A1878
RGBrgb(26, 24, 120)
HSLhsl(241, 67%, 28%)
HSVhsv(241, 80%, 47%)
CMYKcmyk(78.3%, 80%, 0%, 52.9%)
CIE-LABlab(16.64, 35.24, -53.44)
CIE-LCHlch(16.64, 64.01, 303.41°)
OKLaboklab(29.66% 0.007 -0.1547)
OKLCHoklch(29.66% 0.155 272.6)
XYZxyz(4.1417, 2.2285, 17.9775)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1878 #767818
analogous
#184678 #1A1878 #4A1878
triadic
#1A1878 #781A18 #18781A
tetradic
#1A1878 #781846 #767818 #18784A
square
#1A1878 #781846 #767818 #18784A
split-complementary
#1A1878 #784A18 #467818
monochromatic
#06051A #0F0E45 #1A1878 #2522AB #3734D6

Accessibility & contrast

On white

14.52
#1A1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1A1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1878
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1878#FFFFFF#000000##FFFFFF
##1A18781.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a1878;
/* rgb */ color: rgb(26, 24, 120);
/* oklch */ color: oklch(29.7% 0.155 272.6);
Tailwind
colors: {
  custom: {
    50: '#6857a0',
    500: '#1a1878',
    950: '#000000',
  },
}
SCSS
$custom: #1a1878;
$custom-light: #6857a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1878",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 241.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.2966,
    "c": 0.15482,
    "h": 272.6
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#1A1878
secondary
#ABAD3F
accent
#EA3EE6
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1A1878

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

Preview Lab → · Contrast checker → · Palette generator →

#1A1878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva