#3A31BD#3A31BD

#3A31BD is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.8% C 0.208 H 275.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#3A31BD
RGBrgb(58, 49, 189)
HSLhsl(244, 59%, 47%)
HSVhsv(244, 74%, 74%)
CMYKcmyk(69.3%, 74.1%, 0%, 25.9%)
CIE-LABlab(31.28, 47.24, -71.55)
CIE-LCHlch(31.28, 85.74, 303.43°)
OKLaboklab(42.79% 0.0213 -0.2068)
OKLCHoklch(42.79% 0.208 275.9)
XYZxyz(12.0255, 6.7692, 48.8071)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31BD #B4BD31
analogous
#316EBD #3A31BD #8031BD
triadic
#3A31BD #BD3A31 #31BD3A
tetradic
#3A31BD #BD316E #B4BD31 #31BD80
square
#3A31BD #BD316E #B4BD31 #31BD80
split-complementary
#3A31BD #BD8031 #6EBD31
monochromatic
#1C185C #2B248C #3A31BD #6058D4 #8E88E0

Accessibility & contrast

On white

8.92
#3A31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3A31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31BD
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31BD#FFFFFF#000000##FFFFFF
##3A31BD1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a31bd;
/* rgb */ color: rgb(58, 49, 189);
/* oklch */ color: oklch(42.8% 0.208 275.9);
Tailwind
colors: {
  custom: {
    50: '#836bd2',
    500: '#3a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #3a31bd;
$custom-light: #836bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31bd",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 243.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4279,
    "c": 0.20792,
    "h": 275.9
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#3A31BD
secondary
#C5CA80
accent
#E246D8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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