#3A31B1#3A31B1

#3A31B1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.193 H 277.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#3A31B1
RGBrgb(58, 49, 177)
HSLhsl(244, 57%, 44%)
HSVhsv(244, 72%, 69%)
CMYKcmyk(67.2%, 72.3%, 0%, 30.6%)
CIE-LABlab(30.08, 43.37, -66.40)
CIE-LCHlch(30.08, 79.31, 303.15°)
OKLaboklab(41.58% 0.0236 -0.1918)
OKLCHoklch(41.58% 0.193 277)
XYZxyz(10.7765, 6.2696, 42.2287)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31B1 #A8B131
analogous
#3168B1 #3A31B1 #7A31B1
triadic
#3A31B1 #B13A31 #31B13A
tetradic
#3A31B1 #B13168 #A8B131 #31B17A
square
#3A31B1 #B13168 #A8B131 #31B17A
split-complementary
#3A31B1 #B17A31 #68B131
monochromatic
#1B1651 #2A2481 #3A31B1 #5951CF #8780DC

Accessibility & contrast

On white

9.32
#3A31B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3A31B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31B1
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31B1#FFFFFF#000000##FFFFFF
##3A31B11.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a31b1;
/* rgb */ color: rgb(58, 49, 177);
/* oklch */ color: oklch(41.6% 0.193 277.0);
Tailwind
colors: {
  custom: {
    50: '#806bc9',
    500: '#3a31b1',
    950: '#000000',
  },
}
SCSS
$custom: #3a31b1;
$custom-light: #806bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31b1",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 244.219,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41584,
    "c": 0.19323,
    "h": 277
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#3A31B1
secondary
#C0C579
accent
#E048D5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3A31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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