#3A31B5#3A31B5

#3A31B5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 42.0% C 0.198 H 276.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#3A31B5
RGBrgb(58, 49, 181)
HSLhsl(244, 57%, 45%)
HSVhsv(244, 73%, 71%)
CMYKcmyk(68%, 72.9%, 0%, 29%)
CIE-LABlab(30.48, 44.66, -68.13)
CIE-LCHlch(30.48, 81.47, 303.25°)
OKLaboklab(41.98% 0.0228 -0.1969)
OKLCHoklch(41.98% 0.198 276.6)
XYZxyz(11.1810, 6.4314, 44.3593)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31B5 #ACB531
analogous
#316AB5 #3A31B5 #7C31B5
triadic
#3A31B5 #B53A31 #31B53A
tetradic
#3A31B5 #B5316A #ACB531 #31B57C
square
#3A31B5 #B5316A #ACB531 #31B57C
split-complementary
#3A31B5 #B57C31 #6AB531
monochromatic
#1B1755 #2B2485 #3A31B5 #5B53D0 #8983DD

Accessibility & contrast

On white

9.18
#3A31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3A31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31B5
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31B5#FFFFFF#000000##FFFFFF
##3A31B51.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a31b5;
/* rgb */ color: rgb(58, 49, 181);
/* oklch */ color: oklch(42.0% 0.198 276.6);
Tailwind
colors: {
  custom: {
    50: '#816bcc',
    500: '#3a31b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a31b5;
$custom-light: #816bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31b5",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 244.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.19818,
    "h": 276.6
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#3A31B5
secondary
#C2C77B
accent
#E147D6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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