#3A2E97#3A2E97

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

Color values

HEX#3A2E97
RGBrgb(58, 46, 151)
HSLhsl(247, 53%, 39%)
HSVhsv(247, 70%, 59%)
CMYKcmyk(61.6%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.98, 36.62, -55.77)
CIE-LCHlch(26.98, 66.71, 303.29°)
OKLaboklab(38.62% 0.0303 -0.1607)
OKLCHoklch(38.62% 0.164 280.7)
XYZxyz(8.3061, 5.0873, 29.8164)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2E97 #8B972E
analogous
#2E5697 #3A2E97 #6E2E97
triadic
#3A2E97 #973A2E #2E973A
tetradic
#3A2E97 #972E56 #8B972E #2E976E
square
#3A2E97 #972E56 #8B972E #2E976E
split-complementary
#3A2E97 #976E2E #56972E
monochromatic
#161139 #282068 #3A2E97 #4D3EC4 #796DD2

Accessibility & contrast

On white

10.41
#3A2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2E97
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2E97#FFFFFF#000000##FFFFFF
##3A2E971.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2e97;
/* rgb */ color: rgb(58, 46, 151);
/* oklch */ color: oklch(38.6% 0.164 280.7);
Tailwind
colors: {
  custom: {
    50: '#7b68b7',
    500: '#3a2e97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2e97;
$custom-light: #7b68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2e97",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 246.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38615,
    "c": 0.16351,
    "h": 280.7
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#3A2E97
secondary
#B0BA67
accent
#DD4BCC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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