#1A2878#1A2878

#1A2878 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.137 H 269.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#1A2878
RGBrgb(26, 40, 120)
HSLhsl(231, 64%, 29%)
HSVhsv(231, 78%, 47%)
CMYKcmyk(78.3%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.41, 24.92, -47.23)
CIE-LCHlch(20.41, 53.40, 297.81°)
OKLaboklab(32.37% -0.0017 -0.1366)
OKLCHoklch(32.37% 0.137 269.3)
XYZxyz(4.5738, 3.0928, 18.1216)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2878 #786A1A
analogous
#1A5778 #1A2878 #3B1A78
triadic
#1A2878 #781A28 #28781A
tetradic
#1A2878 #781A57 #786A1A #1A783B
square
#1A2878 #781A57 #786A1A #1A783B
split-complementary
#1A2878 #783B1A #57781A
monochromatic
#050819 #0F1746 #1A2878 #2539AA #3850D4

Accessibility & contrast

On white

12.97
#1A2878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1A2878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2878
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2878#FFFFFF#000000##FFFFFF
##1A28781.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a2878;
/* rgb */ color: rgb(26, 40, 120);
/* oklch */ color: oklch(32.4% 0.137 269.3);
Tailwind
colors: {
  custom: {
    50: '#6761a0',
    500: '#1a2878',
    950: '#000000',
  },
}
SCSS
$custom: #1a2878;
$custom-light: #6761a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2878",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 231.064,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.1366,
    "h": 269.3
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#1A2878
secondary
#AC9D41
accent
#CF40E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1A2878

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

Preview Lab → · Contrast checker → · Palette generator →

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