#2A1A84#2A1A84

#2A1A84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.164 H 278.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2A1A84
RGBrgb(42, 26, 132)
HSLhsl(249, 67%, 31%)
HSVhsv(249, 80%, 52%)
CMYKcmyk(68.2%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.62, 39.70, -56.11)
CIE-LCHlch(19.62, 68.73, 305.28°)
OKLaboklab(32.47% 0.0255 -0.162)
OKLCHoklch(32.47% 0.164 278.9)
XYZxyz(5.4878, 2.8965, 22.0952)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A84 #74841A
analogous
#1A3F84 #2A1A84 #5F1A84
triadic
#2A1A84 #842A1A #1A842A
tetradic
#2A1A84 #841A3F #74841A #1A845F
square
#2A1A84 #841A3F #74841A #1A845F
split-complementary
#2A1A84 #845F1A #3F841A
monochromatic
#09061E #1A1051 #2A1A84 #3A24B7 #563FD9

Accessibility & contrast

On white

13.30
#2A1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A84
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A84#FFFFFF#000000##FFFFFF
##2A1A841.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1a84;
/* rgb */ color: rgb(42, 26, 132);
/* oklch */ color: oklch(32.5% 0.164 278.9);
Tailwind
colors: {
  custom: {
    50: '#725aa9',
    500: '#2a1a84',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a84;
$custom-light: #725aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a84",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 249.057,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32472,
    "c": 0.16402,
    "h": 278.9
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#2A1A84
secondary
#A6B842
accent
#EA3ED0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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