#2A1D81#2A1D81

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

Color values

HEX#2A1D81
RGBrgb(42, 29, 129)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(67.4%, 77.5%, 0%, 49.4%)
CIE-LABlab(19.86, 37.10, -53.81)
CIE-LCHlch(19.86, 65.36, 304.58°)
OKLaboklab(32.54% 0.0245 -0.1554)
OKLCHoklch(32.54% 0.157 278.9)
XYZxyz(5.3554, 2.9555, 21.0529)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D81 #74811D
analogous
#1D4281 #2A1D81 #5C1D81
triadic
#2A1D81 #812A1D #1D812A
tetradic
#2A1D81 #811D42 #74811D #1D815C
square
#2A1D81 #811D42 #74811D #1D815C
split-complementary
#2A1D81 #815C1D #42811D
monochromatic
#09071D #1A124F #2A1D81 #3A28B3 #5644D5

Accessibility & contrast

On white

13.20
#2A1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D81
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D81#FFFFFF#000000##FFFFFF
##2A1D811.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1d81;
/* rgb */ color: rgb(42, 29, 129);
/* oklch */ color: oklch(32.5% 0.157 278.9);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2a1d81',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d81;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d81",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 247.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32542,
    "c": 0.1573,
    "h": 278.9
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#2A1D81
secondary
#A6B446
accent
#E641D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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