#3A2D8A#3A2D8A

#3A2D8A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.148 H 282.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3A2D8A
RGBrgb(58, 45, 138)
HSLhsl(248, 51%, 36%)
HSVhsv(248, 67%, 54%)
CMYKcmyk(58%, 67.4%, 0%, 45.9%)
CIE-LABlab(25.60, 32.94, -50.01)
CIE-LCHlch(25.60, 59.88, 303.38°)
OKLaboklab(37.26% 0.033 -0.1438)
OKLCHoklch(37.26% 0.148 282.9)
XYZxyz(7.2693, 4.6108, 24.5468)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D8A #7D8A2D
analogous
#2D4E8A #3A2D8A #682D8A
triadic
#3A2D8A #8A3A2D #2D8A3A
tetradic
#3A2D8A #8A2D4E #7D8A2D #2D8A68
square
#3A2D8A #8A2D4E #7D8A2D #2D8A68
split-complementary
#3A2D8A #8A682D #4E8A2D
monochromatic
#130F2E #271E5C #3A2D8A #4D3CB8 #7365CD

Accessibility & contrast

On white

10.92
#3A2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2D8A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D8A#FFFFFF#000000##FFFFFF
##3A2D8A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#114457
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2d8a;
/* rgb */ color: rgb(58, 45, 138);
/* oklch */ color: oklch(37.3% 0.148 282.9);
Tailwind
colors: {
  custom: {
    50: '#7967ad',
    500: '#3a2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d8a;
$custom-light: #7967ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d8a",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 248.387,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37256,
    "c": 0.14751,
    "h": 282.9
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#3A2D8A
secondary
#A8B360
accent
#DA4DC7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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