#2A1D87#2A1D87

#2A1D87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 278.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1D87
RGBrgb(42, 29, 135)
HSLhsl(247, 65%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(68.9%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.52, 39.06, -56.52)
CIE-LCHlch(20.52, 68.71, 304.65°)
OKLaboklab(33.2% 0.0229 -0.1633)
OKLCHoklch(33.2% 0.165 278)
XYZxyz(5.7660, 3.1197, 23.2153)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D87 #7A871D
analogous
#1D4587 #2A1D87 #5F1D87
triadic
#2A1D87 #872A1D #1D872A
tetradic
#2A1D87 #871D45 #7A871D #1D875F
square
#2A1D87 #871D45 #7A871D #1D875F
split-complementary
#2A1D87 #875F1D #45871D
monochromatic
#0B0722 #1A1255 #2A1D87 #3A28B9 #5947D7

Accessibility & contrast

On white

12.93
#2A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D87
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D87#FFFFFF#000000##FFFFFF
##2A1D871.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1d87;
/* rgb */ color: rgb(42, 29, 135);
/* oklch */ color: oklch(33.2% 0.165 278.0);
Tailwind
colors: {
  custom: {
    50: '#725cab',
    500: '#2a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d87;
$custom-light: #725cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d87",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 247.358,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33195,
    "c": 0.16487,
    "h": 278
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#2A1D87
secondary
#ABB946
accent
#E840D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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