#3A31C8#3A31C8

#3A31C8 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.9% C 0.221 H 274.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3A31C8
RGBrgb(58, 49, 200)
HSLhsl(244, 61%, 49%)
HSVhsv(244, 76%, 78%)
CMYKcmyk(71%, 75.5%, 0%, 21.6%)
CIE-LABlab(32.40, 50.72, -76.15)
CIE-LCHlch(32.40, 91.50, 303.67°)
OKLaboklab(43.92% 0.019 -0.2202)
OKLCHoklch(43.92% 0.221 274.9)
XYZxyz(13.2651, 7.2650, 55.3356)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31C8 #BFC831
analogous
#3174C8 #3A31C8 #8631C8
triadic
#3A31C8 #C83A31 #31C83A
tetradic
#3A31C8 #C83174 #BFC831 #31C886
square
#3A31C8 #C83174 #BFC831 #31C886
split-complementary
#3A31C8 #C88631 #74C831
monochromatic
#1D1966 #2C2597 #3A31C8 #665FD8 #9590E4

Accessibility & contrast

On white

8.56
#3A31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31C8
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31C8#FFFFFF#000000##FFFFFF
##3A31C81.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#0045C5
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a31c8;
/* rgb */ color: rgb(58, 49, 200);
/* oklch */ color: oklch(43.9% 0.221 274.9);
Tailwind
colors: {
  custom: {
    50: '#856cda',
    500: '#3a31c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a31c8;
$custom-light: #856cda;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31c8",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 243.576,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43922,
    "c": 0.22104,
    "h": 274.9
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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