#3A31AF#3A31AF

#3A31AF is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.191 H 277.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#3A31AF
RGBrgb(58, 49, 175)
HSLhsl(244, 56%, 44%)
HSVhsv(244, 72%, 69%)
CMYKcmyk(66.9%, 72%, 0%, 31.4%)
CIE-LABlab(29.89, 42.72, -65.53)
CIE-LCHlch(29.89, 78.22, 303.10°)
OKLaboklab(41.39% 0.0239 -0.1892)
OKLCHoklch(41.39% 0.191 277.2)
XYZxyz(10.5786, 6.1904, 41.1865)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31AF #A6AF31
analogous
#3167AF #3A31AF #7931AF
triadic
#3A31AF #AF3A31 #31AF3A
tetradic
#3A31AF #AF3167 #A6AF31 #31AF79
square
#3A31AF #AF3167 #A6AF31 #31AF79
split-complementary
#3A31AF #AF7931 #67AF31
monochromatic
#1A164F #2A247F #3A31AF #584FCE #867FDB

Accessibility & contrast

On white

9.38
#3A31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3A31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31AF
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31AF#FFFFFF#000000##FFFFFF
##3A31AF1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a31af;
/* rgb */ color: rgb(58, 49, 175);
/* oklch */ color: oklch(41.4% 0.191 277.2);
Tailwind
colors: {
  custom: {
    50: '#806bc8',
    500: '#3a31af',
    950: '#000000',
  },
}
SCSS
$custom: #3a31af;
$custom-light: #806bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31af",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 244.286,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41386,
    "c": 0.19075,
    "h": 277.2
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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