#3A2DA7#3A2DA7

#3A2DA7 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.185 H 278.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#3A2DA7
RGBrgb(58, 45, 167)
HSLhsl(246, 58%, 42%)
HSVhsv(246, 73%, 65%)
CMYKcmyk(65.3%, 73.1%, 0%, 34.5%)
CIE-LABlab(28.29, 42.40, -63.35)
CIE-LCHlch(28.29, 76.23, 303.80°)
OKLaboklab(40.01% 0.0281 -0.1829)
OKLCHoklch(40.01% 0.185 278.7)
XYZxyz(9.6561, 5.5656, 37.1171)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2DA7 #9AA72D
analogous
#2D5DA7 #3A2DA7 #772DA7
triadic
#3A2DA7 #A73A2D #2DA73A
tetradic
#3A2DA7 #A72D5D #9AA72D #2DA777
square
#3A2DA7 #A72D5D #9AA72D #2DA777
split-complementary
#3A2DA7 #A7772D #5DA72D
monochromatic
#191347 #292077 #3A2DA7 #5344CD #7F75DA

Accessibility & contrast

On white

9.94
#3A2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3A2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2DA7
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2DA7#FFFFFF#000000##FFFFFF
##3A2DA71.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2da7;
/* rgb */ color: rgb(58, 45, 167);
/* oklch */ color: oklch(40.0% 0.185 278.7);
Tailwind
colors: {
  custom: {
    50: '#7f68c2',
    500: '#3a2da7',
    950: '#000000',
  },
}
SCSS
$custom: #3a2da7;
$custom-light: #7f68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2da7",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 246.393,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40012,
    "c": 0.18502,
    "h": 278.7
  },
  "luminance": 0.05566
}

Semantic roles & 50–950 ramp

primary
#3A2DA7
secondary
#B9C16E
accent
#E147D0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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