#1A1978#1A1978

#1A1978 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.154 H 272.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#1A1978
RGBrgb(26, 25, 120)
HSLhsl(241, 66%, 28%)
HSVhsv(241, 79%, 47%)
CMYKcmyk(78.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(16.85, 34.66, -53.10)
CIE-LCHlch(16.85, 63.41, 303.13°)
OKLaboklab(29.8% 0.0066 -0.1537)
OKLCHoklch(29.8% 0.154 272.4)
XYZxyz(4.1627, 2.2705, 17.9845)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1978 #777819
analogous
#194778 #1A1978 #491978
triadic
#1A1978 #781A19 #19781A
tetradic
#1A1978 #781947 #777819 #197849
square
#1A1978 #781947 #777819 #197849
split-complementary
#1A1978 #784919 #477819
monochromatic
#050519 #0F0E45 #1A1978 #2524AB #3836D5

Accessibility & contrast

On white

14.44
#1A1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1978
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1978#FFFFFF#000000##FFFFFF
##1A19781.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a1978;
/* rgb */ color: rgb(26, 25, 120);
/* oklch */ color: oklch(29.8% 0.154 272.4);
Tailwind
colors: {
  custom: {
    50: '#6857a0',
    500: '#1a1978',
    950: '#000000',
  },
}
SCSS
$custom: #1a1978;
$custom-light: #6857a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1978",
  "rgb": {
    "r": 26,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 240.632,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29803,
    "c": 0.15383,
    "h": 272.4
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#1A1978
secondary
#ACAD40
accent
#E83FE7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1A1978

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

Preview Lab → · Contrast checker → · Palette generator →

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