#2A1D83#2A1D83

#2A1D83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.160 H 278.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1D83
RGBrgb(42, 29, 131)
HSLhsl(248, 64%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(67.9%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.08, 37.75, -54.72)
CIE-LCHlch(20.08, 66.48, 304.60°)
OKLaboklab(32.76% 0.024 -0.158)
OKLCHoklch(32.76% 0.16 278.6)
XYZxyz(5.4896, 3.0092, 21.7599)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D83 #76831D
analogous
#1D4383 #2A1D83 #5D1D83
triadic
#2A1D83 #832A1D #1D832A
tetradic
#2A1D83 #831D43 #76831D #1D835D
square
#2A1D83 #831D43 #76831D #1D835D
split-complementary
#2A1D83 #835D1D #43831D
monochromatic
#0A071F #1A1251 #2A1D83 #3A28B5 #5745D6

Accessibility & contrast

On white

13.11
#2A1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D83
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D83#FFFFFF#000000##FFFFFF
##2A1D831.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1d83;
/* rgb */ color: rgb(42, 29, 131);
/* oklch */ color: oklch(32.8% 0.160 278.6);
Tailwind
colors: {
  custom: {
    50: '#715ba8',
    500: '#2a1d83',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d83;
$custom-light: #715ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d83",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 247.647,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32758,
    "c": 0.15983,
    "h": 278.6
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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