#3A3191#3A3191

#3A3191 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.152 H 280.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3A3191
RGBrgb(58, 49, 145)
HSLhsl(246, 49%, 38%)
HSVhsv(246, 66%, 57%)
CMYKcmyk(60%, 66.2%, 0%, 43.1%)
CIE-LABlab(27.13, 32.78, -51.84)
CIE-LCHlch(27.13, 61.33, 302.31°)
OKLaboklab(38.56% 0.0284 -0.1491)
OKLCHoklch(38.56% 0.152 280.8)
XYZxyz(7.9525, 5.1400, 27.3556)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3191 #889131
analogous
#315891 #3A3191 #6A3191
triadic
#3A3191 #913A31 #31913A
tetradic
#3A3191 #913158 #889131 #31916A
square
#3A3191 #913158 #889131 #31916A
split-complementary
#3A3191 #916A31 #589131
monochromatic
#151236 #282263 #3A3191 #4C41BF #776ECE

Accessibility & contrast

On white

10.36
#3A3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3A3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3191
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3191#FFFFFF#000000##FFFFFF
##3A31911.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a3191;
/* rgb */ color: rgb(58, 49, 145);
/* oklch */ color: oklch(38.6% 0.152 280.8);
Tailwind
colors: {
  custom: {
    50: '#7a6ab2',
    500: '#3a3191',
    950: '#000000',
  },
}
SCSS
$custom: #3a3191;
$custom-light: #7a6ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3191",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 245.625,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38557,
    "c": 0.15183,
    "h": 280.8
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#3A3191
secondary
#AEB668
accent
#D94FCC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A3191

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

Preview Lab → · Contrast checker → · Palette generator →

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