#3A2F96#3A2F96

#3A2F96 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.161 H 280.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3A2F96
RGBrgb(58, 47, 150)
HSLhsl(246, 52%, 39%)
HSVhsv(246, 69%, 59%)
CMYKcmyk(61.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(27.11, 35.68, -54.94)
CIE-LCHlch(27.11, 65.51, 303.00°)
OKLaboklab(38.68% 0.0296 -0.1583)
OKLCHoklch(38.68% 0.161 280.6)
XYZxyz(8.2647, 5.1340, 29.4037)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F96 #8B962F
analogous
#2F5796 #3A2F96 #6D2F96
triadic
#3A2F96 #963A2F #2F963A
tetradic
#3A2F96 #962F57 #8B962F #2F966D
square
#3A2F96 #962F57 #8B962F #2F966D
split-complementary
#3A2F96 #966D2F #57962F
monochromatic
#161239 #282067 #3A2F96 #4D3FC3 #796ED2

Accessibility & contrast

On white

10.36
#3A2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3A2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F96
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F96#FFFFFF#000000##FFFFFF
##3A2F961.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2f96;
/* rgb */ color: rgb(58, 47, 150);
/* oklch */ color: oklch(38.7% 0.161 280.6);
Tailwind
colors: {
  custom: {
    50: '#7b68b6',
    500: '#3a2f96',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f96;
$custom-light: #7b68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f96",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 246.408,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.161,
    "h": 280.6
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#3A2F96
secondary
#B0B968
accent
#DC4CCC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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