#3A2EAA#3A2EAA

#3A2EAA is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.188 H 278.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#3A2EAA
RGBrgb(58, 46, 170)
HSLhsl(246, 57%, 42%)
HSVhsv(246, 73%, 67%)
CMYKcmyk(65.9%, 72.9%, 0%, 33.3%)
CIE-LABlab(28.79, 42.81, -64.34)
CIE-LCHlch(28.79, 77.28, 303.64°)
OKLaboklab(40.45% 0.0269 -0.1858)
OKLCHoklch(40.45% 0.188 278.2)
XYZxyz(9.9753, 5.7550, 38.6076)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EAA #9EAA2E
analogous
#2E60AA #3A2EAA #782EAA
triadic
#3A2EAA #AA3A2E #2EAA3A
tetradic
#3A2EAA #AA2E60 #9EAA2E #2EAA78
square
#3A2EAA #AA2E60 #9EAA2E #2EAA78
split-complementary
#3A2EAA #AA782E #60AA2E
monochromatic
#19144A #2A217A #3A2EAA #5548CD #8178DA

Accessibility & contrast

On white

9.76
#3A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3A2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EAA
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EAA#FFFFFF#000000##FFFFFF
##3A2EAA1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003FA8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a2eaa;
/* rgb */ color: rgb(58, 46, 170);
/* oklch */ color: oklch(40.5% 0.188 278.2);
Tailwind
colors: {
  custom: {
    50: '#7f69c4',
    500: '#3a2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #3a2eaa;
$custom-light: #7f69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2eaa",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 245.806,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40454,
    "c": 0.1877,
    "h": 278.2
  },
  "luminance": 0.05756
}

Semantic roles & 50–950 ramp

primary
#3A2EAA
secondary
#BBC371
accent
#E147D2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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