#2A1D84#2A1D84

#2A1D84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 278.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1D84
RGBrgb(42, 29, 132)
HSLhsl(248, 64%, 32%)
HSVhsv(248, 78%, 52%)
CMYKcmyk(68.2%, 78%, 0%, 48.2%)
CIE-LABlab(20.19, 38.08, -55.17)
CIE-LCHlch(20.19, 67.04, 304.61°)
OKLaboklab(32.87% 0.0237 -0.1593)
OKLCHoklch(32.87% 0.161 278.5)
XYZxyz(5.5577, 3.0364, 22.1185)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D84 #77841D
analogous
#1D4484 #2A1D84 #5E1D84
triadic
#2A1D84 #842A1D #1D842A
tetradic
#2A1D84 #841D44 #77841D #1D845E
square
#2A1D84 #841D44 #77841D #1D845E
split-complementary
#2A1D84 #845E1D #44841D
monochromatic
#0A0720 #1A1252 #2A1D84 #3A28B6 #5845D6

Accessibility & contrast

On white

13.06
#2A1D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A1D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D84
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D84#FFFFFF#000000##FFFFFF
##2A1D841.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1d84;
/* rgb */ color: rgb(42, 29, 132);
/* oklch */ color: oklch(32.9% 0.161 278.5);
Tailwind
colors: {
  custom: {
    50: '#715ba9',
    500: '#2a1d84',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d84;
$custom-light: #715ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d84",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 247.573,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.1611,
    "h": 278.5
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2A1D84
secondary
#A9B746
accent
#E741D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D84

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

Preview Lab → · Contrast checker → · Palette generator →

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