#1A2A78#1A2A78

#1A2A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.134 H 268.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1A2A78
RGBrgb(26, 42, 120)
HSLhsl(230, 64%, 29%)
HSVhsv(230, 78%, 47%)
CMYKcmyk(78.3%, 65%, 0%, 52.9%)
CIE-LABlab(20.95, 23.53, -46.36)
CIE-LCHlch(20.95, 51.99, 296.91°)
OKLaboklab(32.77% -0.0031 -0.134)
OKLCHoklch(32.77% 0.134 268.7)
XYZxyz(4.6430, 3.2311, 18.1446)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2A78 #78681A
analogous
#1A5978 #1A2A78 #391A78
triadic
#1A2A78 #781A2A #2A781A
tetradic
#1A2A78 #781A59 #78681A #1A7839
square
#1A2A78 #781A59 #78681A #1A7839
split-complementary
#1A2A78 #78391A #59781A
monochromatic
#050919 #0F1846 #1A2A78 #253CAA #3853D4

Accessibility & contrast

On white

12.76
#1A2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1A2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2A78
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2A78#FFFFFF#000000##FFFFFF
##1A2A781.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.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: #1a2a78;
/* rgb */ color: rgb(26, 42, 120);
/* oklch */ color: oklch(32.8% 0.134 268.7);
Tailwind
colors: {
  custom: {
    50: '#6763a0',
    500: '#1a2a78',
    950: '#000000',
  },
}
SCSS
$custom: #1a2a78;
$custom-light: #6763a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2a78",
  "rgb": {
    "r": 26,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 229.787,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.13404,
    "h": 268.7
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#1A2A78
secondary
#AC9A41
accent
#CB40E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1A2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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