#3A2F95#3A2F95

#3A2F95 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.160 H 280.7°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#3A2F95
RGBrgb(58, 47, 149)
HSLhsl(246, 52%, 38%)
HSVhsv(246, 68%, 58%)
CMYKcmyk(61.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(27.02, 35.35, -54.47)
CIE-LCHlch(27.02, 64.94, 302.98°)
OKLaboklab(38.59% 0.0297 -0.1569)
OKLCHoklch(38.59% 0.16 280.7)
XYZxyz(8.1845, 5.1019, 28.9814)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F95 #8A952F
analogous
#2F5795 #3A2F95 #6D2F95
triadic
#3A2F95 #953A2F #2F953A
tetradic
#3A2F95 #952F57 #8A952F #2F956D
square
#3A2F95 #952F57 #8A952F #2F956D
split-complementary
#3A2F95 #956D2F #57952F
monochromatic
#161238 #282066 #3A2F95 #4D3FC2 #786DD1

Accessibility & contrast

On white

10.39
#3A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F95
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F95#FFFFFF#000000##FFFFFF
##3A2F951.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2f95;
/* rgb */ color: rgb(58, 47, 149);
/* oklch */ color: oklch(38.6% 0.160 280.7);
Tailwind
colors: {
  custom: {
    50: '#7b68b5',
    500: '#3a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f95;
$custom-light: #7b68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f95",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 246.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38589,
    "c": 0.15968,
    "h": 280.7
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#3A2F95
secondary
#B0B867
accent
#DB4CCC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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