#2A1D86#2A1D86

#2A1D86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.164 H 278.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2A1D86
RGBrgb(42, 29, 134)
HSLhsl(247, 64%, 32%)
HSVhsv(247, 78%, 53%)
CMYKcmyk(68.7%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.41, 38.74, -56.07)
CIE-LCHlch(20.41, 68.15, 304.64°)
OKLaboklab(33.09% 0.0232 -0.162)
OKLCHoklch(33.09% 0.164 278.1)
XYZxyz(5.6959, 3.0917, 22.8462)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D86 #79861D
analogous
#1D4486 #2A1D86 #5F1D86
triadic
#2A1D86 #862A1D #1D862A
tetradic
#2A1D86 #861D44 #79861D #1D865F
square
#2A1D86 #861D44 #79861D #1D865F
split-complementary
#2A1D86 #865F1D #44861D
monochromatic
#0A0721 #1A1254 #2A1D86 #3A28B8 #5846D7

Accessibility & contrast

On white

12.98
#2A1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D86
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D86#FFFFFF#000000##FFFFFF
##2A1D861.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1d86;
/* rgb */ color: rgb(42, 29, 134);
/* oklch */ color: oklch(33.1% 0.164 278.1);
Tailwind
colors: {
  custom: {
    50: '#725baa',
    500: '#2a1d86',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d86;
$custom-light: #725baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d86",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 247.429,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33086,
    "c": 0.16362,
    "h": 278.1
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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