#3A31BB#3A31BB

#3A31BB is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.205 H 276.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3A31BB
RGBrgb(58, 49, 187)
HSLhsl(244, 58%, 46%)
HSVhsv(244, 74%, 73%)
CMYKcmyk(69%, 73.8%, 0%, 26.7%)
CIE-LABlab(31.07, 46.60, -70.71)
CIE-LCHlch(31.07, 84.68, 303.39°)
OKLaboklab(42.59% 0.0217 -0.2043)
OKLCHoklch(42.59% 0.205 276.1)
XYZxyz(11.8099, 6.6829, 47.6716)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31BB #B2BB31
analogous
#316DBB #3A31BB #7F31BB
triadic
#3A31BB #BB3A31 #31BB3A
tetradic
#3A31BB #BB316D #B2BB31 #31BB7F
square
#3A31BB #BB316D #B2BB31 #31BB7F
split-complementary
#3A31BB #BB7F31 #6DBB31
monochromatic
#1C185A #2B248B #3A31BB #5E56D3 #8D87E0

Accessibility & contrast

On white

8.99
#3A31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3A31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31BB
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31BB#FFFFFF#000000##FFFFFF
##3A31BB1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a31bb;
/* rgb */ color: rgb(58, 49, 187);
/* oklch */ color: oklch(42.6% 0.205 276.1);
Tailwind
colors: {
  custom: {
    50: '#826bd1',
    500: '#3a31bb',
    950: '#000000',
  },
}
SCSS
$custom: #3a31bb;
$custom-light: #826bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31bb",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 243.913,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42587,
    "c": 0.20549,
    "h": 276.1
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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