#2A1D85#2A1D85

#2A1D85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.162 H 278.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1D85
RGBrgb(42, 29, 133)
HSLhsl(248, 64%, 32%)
HSVhsv(248, 78%, 52%)
CMYKcmyk(68.4%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.30, 38.41, -55.63)
CIE-LCHlch(20.30, 67.60, 304.63°)
OKLaboklab(32.98% 0.0234 -0.1607)
OKLCHoklch(32.98% 0.162 278.3)
XYZxyz(5.6265, 3.0639, 22.4806)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D85 #78851D
analogous
#1D4485 #2A1D85 #5E1D85
triadic
#2A1D85 #852A1D #1D852A
tetradic
#2A1D85 #851D44 #78851D #1D855E
square
#2A1D85 #851D44 #78851D #1D855E
split-complementary
#2A1D85 #855E1D #44851D
monochromatic
#0A0721 #1A1253 #2A1D85 #3A28B7 #5846D7

Accessibility & contrast

On white

13.02
#2A1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D85
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D85#FFFFFF#000000##FFFFFF
##2A1D851.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1d85;
/* rgb */ color: rgb(42, 29, 133);
/* oklch */ color: oklch(33.0% 0.162 278.3);
Tailwind
colors: {
  custom: {
    50: '#715baa',
    500: '#2a1d85',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d85;
$custom-light: #715baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d85",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 247.5,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.16236,
    "h": 278.3
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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