#3A2F84#3A2F84

#3A2F84 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.137 H 283.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#3A2F84
RGBrgb(58, 47, 132)
HSLhsl(248, 47%, 35%)
HSVhsv(248, 64%, 52%)
CMYKcmyk(56.1%, 64.4%, 0%, 48.2%)
CIE-LABlab(25.56, 29.70, -46.32)
CIE-LCHlch(25.56, 55.03, 302.67°)
OKLaboklab(37.07% 0.0316 -0.133)
OKLCHoklch(37.07% 0.137 283.4)
XYZxyz(6.9250, 4.5981, 22.3479)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F84 #79842F
analogous
#2F4E84 #3A2F84 #652F84
triadic
#3A2F84 #843A2F #2F843A
tetradic
#3A2F84 #842F4E #79842F #2F8465
square
#3A2F84 #842F4E #79842F #2F8465
split-complementary
#3A2F84 #84652F #4E842F
monochromatic
#120F2A #261F57 #3A2F84 #4E3FB1 #7265C8

Accessibility & contrast

On white

10.94
#3A2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F84
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F84#FFFFFF#000000##FFFFFF
##3A2F841.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#194455
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2f84;
/* rgb */ color: rgb(58, 47, 132);
/* oklch */ color: oklch(37.1% 0.137 283.4);
Tailwind
colors: {
  custom: {
    50: '#7868a8',
    500: '#3a2f84',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f84;
$custom-light: #7868a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f84",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 247.765,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3707,
    "c": 0.13666,
    "h": 283.4
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#3A2F84
secondary
#A5AF60
accent
#D751C6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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