#3A2FB8#3A2FB8

#3A2FB8 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.204 H 276.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB8
RGBrgb(58, 47, 184)
HSLhsl(245, 59%, 45%)
HSVhsv(245, 74%, 72%)
CMYKcmyk(68.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(30.38, 46.74, -70.07)
CIE-LCHlch(30.38, 84.23, 303.70°)
OKLaboklab(42.01% 0.0234 -0.2025)
OKLCHoklch(42.01% 0.204 276.6)
XYZxyz(11.4103, 6.3922, 45.9706)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB8 #ADB82F
analogous
#2F68B8 #3A2FB8 #7F2FB8
triadic
#3A2FB8 #B83A2F #2FB83A
tetradic
#3A2FB8 #B82F68 #ADB82F #2FB87F
square
#3A2FB8 #B82F68 #ADB82F #2FB87F
split-complementary
#3A2FB8 #B87F2F #68B82F
monochromatic
#1B1657 #2B2387 #3A2FB8 #5C52D3 #8A82DF

Accessibility & contrast

On white

9.22
#3A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3A2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB8
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB8#FFFFFF#000000##FFFFFF
##3A2FB81.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a2fb8;
/* rgb */ color: rgb(58, 47, 184);
/* oklch */ color: oklch(42.0% 0.204 276.6);
Tailwind
colors: {
  custom: {
    50: '#826acf',
    500: '#3a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb8;
$custom-light: #826acf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb8",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 244.818,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.20384,
    "h": 276.6
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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