#1A1578#1A1578

#1A1578 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.158 H 273.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1A1578
RGBrgb(26, 21, 120)
HSLhsl(243, 70%, 28%)
HSVhsv(243, 83%, 47%)
CMYKcmyk(78.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.06, 36.92, -54.40)
CIE-LCHlch(16.06, 65.74, 304.16°)
OKLaboklab(29.25% 0.0082 -0.1574)
OKLCHoklch(29.25% 0.158 273)
XYZxyz(4.0832, 2.1116, 17.9580)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1578 #737815
analogous
#154278 #1A1578 #4B1578
triadic
#1A1578 #781A15 #15781A
tetradic
#1A1578 #781542 #737815 #15784B
square
#1A1578 #781542 #737815 #15784B
split-complementary
#1A1578 #784B15 #427815
monochromatic
#06051A #0F0C44 #1A1578 #251EAC #362DDA

Accessibility & contrast

On white

14.76
#1A1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1A1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1578
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1578#FFFFFF#000000##FFFFFF
##1A15781.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1a1578;
/* rgb */ color: rgb(26, 21, 120);
/* oklch */ color: oklch(29.3% 0.158 273.0);
Tailwind
colors: {
  custom: {
    50: '#6955a0',
    500: '#1a1578',
    950: '#000000',
  },
}
SCSS
$custom: #1a1578;
$custom-light: #6955a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1578",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 243.03,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29252,
    "c": 0.15762,
    "h": 273
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#1A1578
secondary
#A8AE3B
accent
#ED3BE4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1A1578

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

Preview Lab → · Contrast checker → · Palette generator →

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