#2A1D95#2A1D95

#2A1D95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.182 H 276.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1D95
RGBrgb(42, 29, 149)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 81%, 58%)
CMYKcmyk(71.8%, 80.5%, 0%, 41.6%)
CIE-LABlab(22.09, 43.56, -62.64)
CIE-LCHlch(22.09, 76.30, 304.82°)
OKLaboklab(34.76% 0.0192 -0.1811)
OKLCHoklch(34.76% 0.182 276.1)
XYZxyz(6.8172, 3.5403, 28.7520)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D95 #88951D
analogous
#1D4C95 #2A1D95 #661D95
triadic
#2A1D95 #952A1D #1D952A
tetradic
#2A1D95 #951D4C #88951D #1D9566
square
#2A1D95 #951D4C #88951D #1D9566
split-complementary
#2A1D95 #95661D #4C951D
monochromatic
#0D092F #1C1362 #2A1D95 #3827C8 #5F50DD

Accessibility & contrast

On white

12.29
#2A1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D95
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D95#FFFFFF#000000##FFFFFF
##2A1D951.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1d95;
/* rgb */ color: rgb(42, 29, 149);
/* oklch */ color: oklch(34.8% 0.182 276.1);
Tailwind
colors: {
  custom: {
    50: '#755cb5',
    500: '#2a1d95',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d95;
$custom-light: #755cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d95",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 246.5,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.1821,
    "h": 276.1
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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