#3B31AA#3B31AA

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

Color values

HEX#3B31AA
RGBrgb(59, 49, 170)
HSLhsl(245, 55%, 43%)
HSVhsv(245, 71%, 67%)
CMYKcmyk(65.3%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.48, 41.21, -63.19)
CIE-LCHlch(29.48, 75.44, 303.11°)
OKLaboklab(40.97% 0.0262 -0.1824)
OKLCHoklch(40.97% 0.184 278.2)
XYZxyz(10.1553, 6.0279, 38.6507)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31AA #A0AA31
analogous
#3163AA #3B31AA #7831AA
triadic
#3B31AA #AA3B31 #31AA3B
tetradic
#3B31AA #AA3163 #A0AA31 #31AA78
square
#3B31AA #AA3163 #A0AA31 #31AA78
split-complementary
#3B31AA #AA7831 #63AA31
monochromatic
#1A164B #2B237A #3B31AA #574DCC #847CD9

Accessibility & contrast

On white

9.52
#3B31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3B31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31AA
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31AA#FFFFFF#000000##FFFFFF
##3B31AA1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.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: #3b31aa;
/* rgb */ color: rgb(59, 49, 170);
/* oklch */ color: oklch(41.0% 0.184 278.2);
Tailwind
colors: {
  custom: {
    50: '#7f6bc4',
    500: '#3b31aa',
    950: '#000000',
  },
}
SCSS
$custom: #3b31aa;
$custom-light: #7f6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31aa",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 244.959,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40971,
    "c": 0.18426,
    "h": 278.2
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#3B31AA
secondary
#BCC275
accent
#DF49D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3B31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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