#3A2F99#3A2F99

#3A2F99 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.165 H 280.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3A2F99
RGBrgb(58, 47, 153)
HSLhsl(246, 53%, 39%)
HSVhsv(246, 69%, 60%)
CMYKcmyk(62.1%, 69.3%, 0%, 40%)
CIE-LABlab(27.39, 36.67, -56.33)
CIE-LCHlch(27.39, 67.22, 303.06°)
OKLaboklab(38.96% 0.0291 -0.1623)
OKLCHoklch(38.96% 0.165 280.2)
XYZxyz(8.5094, 5.2319, 30.6923)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F99 #8E992F
analogous
#2F5999 #3A2F99 #6F2F99
triadic
#3A2F99 #993A2F #2F993A
tetradic
#3A2F99 #992F59 #8E992F #2F996F
square
#3A2F99 #992F59 #8E992F #2F996F
split-complementary
#3A2F99 #996F2F #59992F
monochromatic
#17123B #28216A #3A2F99 #4E41C5 #7A6FD3

Accessibility & contrast

On white

10.26
#3A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3A2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F99
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F99#FFFFFF#000000##FFFFFF
##3A2F991.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2f99;
/* rgb */ color: rgb(58, 47, 153);
/* oklch */ color: oklch(39.0% 0.165 280.2);
Tailwind
colors: {
  custom: {
    50: '#7c69b8',
    500: '#3a2f99',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f99;
$custom-light: #7c69b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f99",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 246.226,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38961,
    "c": 0.16493,
    "h": 280.2
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#3A2F99
secondary
#B2BA69
accent
#DC4BCD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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