#3A31C9#3A31C9

#3A31C9 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.222 H 274.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3A31C9
RGBrgb(58, 49, 201)
HSLhsl(244, 61%, 49%)
HSVhsv(244, 76%, 79%)
CMYKcmyk(71.1%, 75.6%, 0%, 21.2%)
CIE-LABlab(32.51, 51.04, -76.56)
CIE-LCHlch(32.51, 92.01, 303.69°)
OKLaboklab(44.03% 0.0188 -0.2214)
OKLCHoklch(44.03% 0.222 274.8)
XYZxyz(13.3824, 7.3119, 55.9531)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31C9 #C0C931
analogous
#3174C9 #3A31C9 #8631C9
triadic
#3A31C9 #C93A31 #31C93A
tetradic
#3A31C9 #C93174 #C0C931 #31C986
square
#3A31C9 #C93174 #C0C931 #31C986
split-complementary
#3A31C9 #C98631 #74C931
monochromatic
#1E1967 #2C2598 #3A31C9 #665FD8 #9590E4

Accessibility & contrast

On white

8.53
#3A31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3A31C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31C9
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31C9#FFFFFF#000000##FFFFFF
##3A31C91.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CD
Deuteranopia (green-blind)
#0045C6
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a31c9;
/* rgb */ color: rgb(58, 49, 201);
/* oklch */ color: oklch(44.0% 0.222 274.8);
Tailwind
colors: {
  custom: {
    50: '#856cdb',
    500: '#3a31c9',
    950: '#000000',
  },
}
SCSS
$custom: #3a31c9;
$custom-light: #856cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31c9",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 243.553,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.44026,
    "c": 0.22221,
    "h": 274.8
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#3A31C9
secondary
#CACF87
accent
#E444DA
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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