#3A2FB3#3A2FB3

#3A2FB3 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.198 H 277.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB3
RGBrgb(58, 47, 179)
HSLhsl(245, 58%, 44%)
HSVhsv(245, 74%, 70%)
CMYKcmyk(67.6%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.88, 45.14, -67.93)
CIE-LCHlch(29.88, 81.56, 303.60°)
OKLaboklab(41.5% 0.0244 -0.1962)
OKLCHoklch(41.5% 0.198 277.1)
XYZxyz(10.8955, 6.1863, 43.2590)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB3 #A8B32F
analogous
#2F66B3 #3A2FB3 #7C2FB3
triadic
#3A2FB3 #B33A2F #2FB33A
tetradic
#3A2FB3 #B32F66 #A8B32F #2FB37C
square
#3A2FB3 #B32F66 #A8B32F #2FB37C
split-complementary
#3A2FB3 #B37C2F #66B32F
monochromatic
#1B1652 #2A2283 #3A2FB3 #594FD1 #877FDD

Accessibility & contrast

On white

9.39
#3A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3A2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB3
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB3#FFFFFF#000000##FFFFFF
##3A2FB31.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a2fb3;
/* rgb */ color: rgb(58, 47, 179);
/* oklch */ color: oklch(41.5% 0.198 277.1);
Tailwind
colors: {
  custom: {
    50: '#816acb',
    500: '#3a2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb3;
$custom-light: #816acb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb3",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 245,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.19776,
    "h": 277.1
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#3A2FB3
secondary
#C0C678
accent
#E246D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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