#3A31AA#3A31AA

#3A31AA is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.184 H 277.7°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#3A31AA
RGBrgb(58, 49, 170)
HSLhsl(244, 55%, 43%)
HSVhsv(244, 71%, 67%)
CMYKcmyk(65.9%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.41, 41.08, -63.32)
CIE-LCHlch(29.41, 75.48, 302.98°)
OKLaboklab(40.9% 0.0248 -0.1828)
OKLCHoklch(40.9% 0.184 277.7)
XYZxyz(10.0966, 5.9976, 38.6480)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31AA #A1AA31
analogous
#3164AA #3A31AA #7631AA
triadic
#3A31AA #AA3A31 #31AA3A
tetradic
#3A31AA #AA3164 #A1AA31 #31AA76
square
#3A31AA #AA3164 #A1AA31 #31AA76
split-complementary
#3A31AA #AA7631 #64AA31
monochromatic
#1A164B #2A237A #3A31AA #564DCC #837CD9

Accessibility & contrast

On white

9.55
#3A31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3A31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31AA
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31AA#FFFFFF#000000##FFFFFF
##3A31AA1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a31aa;
/* rgb */ color: rgb(58, 49, 170);
/* oklch */ color: oklch(40.9% 0.184 277.7);
Tailwind
colors: {
  custom: {
    50: '#7f6ac4',
    500: '#3a31aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a31aa;
$custom-light: #7f6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31aa",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 244.463,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40897,
    "c": 0.18447,
    "h": 277.7
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#3A31AA
secondary
#BCC275
accent
#DF49D3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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