#3A31B9#3A31B9

#3A31B9 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.4% C 0.203 H 276.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#3A31B9
RGBrgb(58, 49, 185)
HSLhsl(244, 58%, 46%)
HSVhsv(244, 74%, 73%)
CMYKcmyk(68.6%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.87, 45.95, -69.85)
CIE-LCHlch(30.87, 83.61, 303.34°)
OKLaboklab(42.38% 0.0221 -0.2019)
OKLCHoklch(42.38% 0.203 276.2)
XYZxyz(11.5973, 6.5979, 46.5519)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31B9 #B0B931
analogous
#316CB9 #3A31B9 #7E31B9
triadic
#3A31B9 #B93A31 #31B93A
tetradic
#3A31B9 #B9316C #B0B931 #31B97E
square
#3A31B9 #B9316C #B0B931 #31B97E
split-complementary
#3A31B9 #B97E31 #6CB931
monochromatic
#1C1758 #2B2489 #3A31B9 #5D55D2 #8B86DF

Accessibility & contrast

On white

9.05
#3A31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3A31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31B9
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31B9#FFFFFF#000000##FFFFFF
##3A31B91.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a31b9;
/* rgb */ color: rgb(58, 49, 185);
/* oklch */ color: oklch(42.4% 0.203 276.2);
Tailwind
colors: {
  custom: {
    50: '#826bcf',
    500: '#3a31b9',
    950: '#000000',
  },
}
SCSS
$custom: #3a31b9;
$custom-light: #826bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31b9",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 243.971,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42384,
    "c": 0.20307,
    "h": 276.2
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#3A31B9
secondary
#C3C87D
accent
#E146D7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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