#1A1580#1A1580

#1A1580 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.168 H 272.1°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1A1580
RGBrgb(26, 21, 128)
HSLhsl(243, 72%, 29%)
HSVhsv(243, 84%, 50%)
CMYKcmyk(79.7%, 83.6%, 0%, 49.8%)
CIE-LABlab(17.06, 39.59, -57.86)
CIE-LCHlch(17.06, 70.11, 304.38°)
OKLaboklab(30.23% 0.0062 -0.1674)
OKLCHoklch(30.23% 0.168 272.1)
XYZxyz(4.5891, 2.3140, 20.6227)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1580 #7B8015
analogous
#154680 #1A1580 #501580
triadic
#1A1580 #801A15 #15801A
tetradic
#1A1580 #801546 #7B8015 #158050
square
#1A1580 #801546 #7B8015 #158050
split-complementary
#1A1580 #805015 #468015
monochromatic
#05041A #0F0C4B #1A1580 #251EB5 #3A32DD

Accessibility & contrast

On white

14.36
#1A1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1A1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1580
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1580#FFFFFF#000000##FFFFFF
##1A15801.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a1580;
/* rgb */ color: rgb(26, 21, 128);
/* oklch */ color: oklch(30.2% 0.168 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b56a6',
    500: '#1a1580',
    950: '#000000',
  },
}
SCSS
$custom: #1a1580;
$custom-light: #6b56a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1580",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 242.804,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.16756,
    "h": 272.1
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#1A1580
secondary
#AFB53C
accent
#EF39E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A1580

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

Preview Lab → · Contrast checker → · Palette generator →

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