#3A2FB7#3A2FB7

#3A2FB7 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.9% C 0.203 H 276.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB7
RGBrgb(58, 47, 183)
HSLhsl(245, 59%, 45%)
HSVhsv(245, 74%, 72%)
CMYKcmyk(68.3%, 74.3%, 0%, 28.2%)
CIE-LABlab(30.28, 46.42, -69.64)
CIE-LCHlch(30.28, 83.70, 303.68°)
OKLaboklab(41.9% 0.0236 -0.2013)
OKLCHoklch(41.9% 0.203 276.7)
XYZxyz(11.3059, 6.3505, 45.4205)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB7 #ACB72F
analogous
#2F68B7 #3A2FB7 #7E2FB7
triadic
#3A2FB7 #B73A2F #2FB73A
tetradic
#3A2FB7 #B72F68 #ACB72F #2FB77E
square
#3A2FB7 #B72F68 #ACB72F #2FB77E
split-complementary
#3A2FB7 #B77E2F #68B72F
monochromatic
#1B1656 #2B2286 #3A2FB7 #5B51D2 #8982DF

Accessibility & contrast

On white

9.25
#3A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3A2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB7
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB7#FFFFFF#000000##FFFFFF
##3A2FB71.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a2fb7;
/* rgb */ color: rgb(58, 47, 183);
/* oklch */ color: oklch(41.9% 0.203 276.7);
Tailwind
colors: {
  custom: {
    50: '#826ace',
    500: '#3a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb7;
$custom-light: #826ace;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb7",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 244.853,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41904,
    "c": 0.20263,
    "h": 276.7
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#3A2FB7
secondary
#C2C87A
accent
#E245D6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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