#3A2F97#3A2F97

#3A2F97 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.162 H 280.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#3A2F97
RGBrgb(58, 47, 151)
HSLhsl(246, 53%, 39%)
HSVhsv(246, 69%, 59%)
CMYKcmyk(61.6%, 68.9%, 0%, 40.8%)
CIE-LABlab(27.20, 36.01, -55.41)
CIE-LCHlch(27.20, 66.08, 303.02°)
OKLaboklab(38.77% 0.0294 -0.1596)
OKLCHoklch(38.77% 0.162 280.4)
XYZxyz(8.3456, 5.1663, 29.8296)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F97 #8C972F
analogous
#2F5897 #3A2F97 #6E2F97
triadic
#3A2F97 #973A2F #2F973A
tetradic
#3A2F97 #972F58 #8C972F #2F976E
square
#3A2F97 #972F58 #8C972F #2F976E
split-complementary
#3A2F97 #976E2F #58972F
monochromatic
#16123A #282068 #3A2F97 #4E40C3 #796ED2

Accessibility & contrast

On white

10.33
#3A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2F97
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F97#FFFFFF#000000##FFFFFF
##3A2F971.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2f97;
/* rgb */ color: rgb(58, 47, 151);
/* oklch */ color: oklch(38.8% 0.162 280.4);
Tailwind
colors: {
  custom: {
    50: '#7b69b7',
    500: '#3a2f97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f97;
$custom-light: #7b69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f97",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 246.346,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.16231,
    "h": 280.4
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#3A2F97
secondary
#B1B968
accent
#DC4CCD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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