#2A1D96#2A1D96

#2A1D96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 275.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2A1D96
RGBrgb(42, 29, 150)
HSLhsl(246, 68%, 35%)
HSVhsv(246, 81%, 59%)
CMYKcmyk(72%, 80.7%, 0%, 41.2%)
CIE-LABlab(22.20, 43.88, -63.07)
CIE-LCHlch(22.20, 76.83, 304.83°)
OKLaboklab(34.87% 0.019 -0.1823)
OKLCHoklch(34.87% 0.183 275.9)
XYZxyz(6.8974, 3.5723, 29.1743)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D96 #89961D
analogous
#1D4D96 #2A1D96 #661D96
triadic
#2A1D96 #962A1D #1D962A
tetradic
#2A1D96 #961D4D #89961D #1D9666
square
#2A1D96 #961D4D #89961D #1D9666
split-complementary
#2A1D96 #96661D #4D961D
monochromatic
#0D092F #1C1363 #2A1D96 #3827C9 #5F50DD

Accessibility & contrast

On white

12.25
#2A1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D96
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D96#FFFFFF#000000##FFFFFF
##2A1D961.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1d96;
/* rgb */ color: rgb(42, 29, 150);
/* oklch */ color: oklch(34.9% 0.183 275.9);
Tailwind
colors: {
  custom: {
    50: '#755cb6',
    500: '#2a1d96',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d96;
$custom-light: #755cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d96",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 246.446,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.1833,
    "h": 275.9
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#2A1D96
secondary
#B4C04F
accent
#EA3DD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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