#3A2D95#3A2D95

#3A2D95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.162 H 281.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3A2D95
RGBrgb(58, 45, 149)
HSLhsl(248, 54%, 38%)
HSVhsv(248, 70%, 58%)
CMYKcmyk(61.1%, 69.8%, 0%, 41.6%)
CIE-LABlab(26.58, 36.56, -55.20)
CIE-LCHlch(26.58, 66.21, 303.52°)
OKLaboklab(38.27% 0.0314 -0.159)
OKLCHoklch(38.27% 0.162 281.2)
XYZxyz(8.1064, 4.9457, 28.9554)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D95 #88952D
analogous
#2D5495 #3A2D95 #6E2D95
triadic
#3A2D95 #953A2D #2D953A
tetradic
#3A2D95 #952D54 #88952D #2D956E
square
#3A2D95 #952D54 #88952D #2D956E
split-complementary
#3A2D95 #956E2D #54952D
monochromatic
#151137 #281F66 #3A2D95 #4C3BC4 #776AD2

Accessibility & contrast

On white

10.56
#3A2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3A2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D95
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D95#FFFFFF#000000##FFFFFF
##3A2D951.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a2d95;
/* rgb */ color: rgb(58, 45, 149);
/* oklch */ color: oklch(38.3% 0.162 281.2);
Tailwind
colors: {
  custom: {
    50: '#7b67b5',
    500: '#3a2d95',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d95;
$custom-light: #7b67b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d95",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 247.5,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38269,
    "c": 0.16209,
    "h": 281.2
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#3A2D95
secondary
#AEB965
accent
#DD4BCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2D95

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

Preview Lab → · Contrast checker → · Palette generator →

#3A2D95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva