#2A1A80#2A1A80

#2A1A80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.159 H 279.6°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2A1A80
RGBrgb(42, 26, 128)
HSLhsl(249, 66%, 30%)
HSVhsv(249, 80%, 50%)
CMYKcmyk(67.2%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.18, 38.41, -54.31)
CIE-LCHlch(19.18, 66.53, 305.27°)
OKLaboklab(32.03% 0.0266 -0.1568)
OKLCHoklch(32.03% 0.159 279.6)
XYZxyz(5.2193, 2.7891, 20.6812)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A80 #70801A
analogous
#1A3D80 #2A1A80 #5D1A80
triadic
#2A1A80 #802A1A #1A802A
tetradic
#2A1A80 #801A3D #70801A #1A805D
square
#2A1A80 #801A3D #70801A #1A805D
split-complementary
#2A1A80 #805D1A #3D801A
monochromatic
#09051A #19104D #2A1A80 #3B24B3 #553DD8

Accessibility & contrast

On white

13.48
#2A1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A80
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A80#FFFFFF#000000##FFFFFF
##2A1A801.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1a80;
/* rgb */ color: rgb(42, 26, 128);
/* oklch */ color: oklch(32.0% 0.159 279.6);
Tailwind
colors: {
  custom: {
    50: '#7159a6',
    500: '#2a1a80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a80;
$custom-light: #7159a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a80",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 249.412,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.15905,
    "h": 279.6
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#2A1A80
secondary
#A2B442
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A1A80

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1A80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva