#2A1D82#2A1D82

#2A1D82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.159 H 278.8°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1D82
RGBrgb(42, 29, 130)
HSLhsl(248, 64%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(67.7%, 77.7%, 0%, 49%)
CIE-LABlab(19.97, 37.42, -54.27)
CIE-LCHlch(19.97, 65.92, 304.59°)
OKLaboklab(32.65% 0.0242 -0.1567)
OKLCHoklch(32.65% 0.159 278.8)
XYZxyz(5.4222, 2.9822, 21.4047)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D82 #75821D
analogous
#1D4282 #2A1D82 #5C1D82
triadic
#2A1D82 #822A1D #1D822A
tetradic
#2A1D82 #821D42 #75821D #1D825C
square
#2A1D82 #821D42 #75821D #1D825C
split-complementary
#2A1D82 #825C1D #42821D
monochromatic
#0A071E #1A1250 #2A1D82 #3A28B4 #5744D5

Accessibility & contrast

On white

13.15
#2A1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D82
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D82#FFFFFF#000000##FFFFFF
##2A1D821.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d82;
/* rgb */ color: rgb(42, 29, 130);
/* oklch */ color: oklch(32.6% 0.159 278.8);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2a1d82',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d82;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d82",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 247.723,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3265,
    "c": 0.15857,
    "h": 278.8
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#2A1D82
secondary
#A7B546
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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