#3A319E#3A319E

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

Color values

HEX#3A319E
RGBrgb(58, 49, 158)
HSLhsl(245, 53%, 41%)
HSVhsv(245, 69%, 62%)
CMYKcmyk(63.3%, 69%, 0%, 38%)
CIE-LABlab(28.29, 37.12, -57.91)
CIE-LCHlch(28.29, 68.78, 302.66°)
OKLaboklab(39.75% 0.0267 -0.167)
OKLCHoklch(39.75% 0.169 279.1)
XYZxyz(9.0128, 5.5641, 32.9402)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A319E #959E31
analogous
#315E9E #3A319E #70319E
triadic
#3A319E #9E3A31 #319E3A
tetradic
#3A319E #9E315E #959E31 #319E70
square
#3A319E #9E315E #959E31 #319E70
split-complementary
#3A319E #9E7031 #5E9E31
monochromatic
#181441 #29236F #3A319E #5146C6 #7D75D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A319E#FFFFFF#000000##FFFFFF
##3A319E1.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)
#0047A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a319e;
/* rgb */ color: rgb(58, 49, 158);
/* oklch */ color: oklch(39.7% 0.169 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c6abc',
    500: '#3a319e',
    950: '#000000',
  },
}
SCSS
$custom: #3a319e;
$custom-light: #7c6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a319e",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 244.954,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39749,
    "c": 0.16909,
    "h": 279.1
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#3A319E
secondary
#B6BC6E
accent
#DC4CD0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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