#2A1A82#2A1A82

#2A1A82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 279.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2A1A82
RGBrgb(42, 26, 130)
HSLhsl(249, 67%, 31%)
HSVhsv(249, 80%, 51%)
CMYKcmyk(67.7%, 80%, 0%, 49%)
CIE-LABlab(19.40, 39.06, -55.21)
CIE-LCHlch(19.40, 67.63, 305.27°)
OKLaboklab(32.25% 0.026 -0.1594)
OKLCHoklch(32.25% 0.162 279.3)
XYZxyz(5.3522, 2.8423, 21.3813)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A82 #72821A
analogous
#1A3E82 #2A1A82 #5E1A82
triadic
#2A1A82 #822A1A #1A822A
tetradic
#2A1A82 #821A3E #72821A #1A825E
square
#2A1A82 #821A3E #72821A #1A825E
split-complementary
#2A1A82 #825E1A #3E821A
monochromatic
#09061C #1A104F #2A1A82 #3A24B5 #563ED8

Accessibility & contrast

On white

13.39
#2A1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A82
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A82#FFFFFF#000000##FFFFFF
##2A1A821.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1a82;
/* rgb */ color: rgb(42, 26, 130);
/* oklch */ color: oklch(32.2% 0.162 279.3);
Tailwind
colors: {
  custom: {
    50: '#715aa7',
    500: '#2a1a82',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a82;
$custom-light: #715aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a82",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 249.231,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.16154,
    "h": 279.3
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#2A1A82
secondary
#A4B642
accent
#EA3ECF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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