#3D31B6#3D31B6

#3D31B6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.3% C 0.199 H 277.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#3D31B6
RGBrgb(61, 49, 182)
HSLhsl(245, 58%, 45%)
HSVhsv(245, 73%, 71%)
CMYKcmyk(66.5%, 73.1%, 0%, 28.6%)
CIE-LABlab(30.80, 45.33, -68.19)
CIE-LCHlch(30.80, 81.89, 303.61°)
OKLaboklab(42.3% 0.0266 -0.1969)
OKLCHoklch(42.3% 0.199 277.7)
XYZxyz(11.4635, 6.5651, 44.9100)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31B6 #AAB631
analogous
#3167B6 #3D31B6 #8031B6
triadic
#3D31B6 #B63D31 #31B63D
tetradic
#3D31B6 #B63167 #AAB631 #31B680
square
#3D31B6 #B63167 #AAB631 #31B680
split-complementary
#3D31B6 #B68031 #67B631
monochromatic
#1D1756 #2D2486 #3D31B6 #5F53D1 #8C84DE

Accessibility & contrast

On white

9.08
#3D31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3D31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31B6
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31B6#FFFFFF#000000##FFFFFF
##3D31B61.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3d31b6;
/* rgb */ color: rgb(61, 49, 182);
/* oklch */ color: oklch(42.3% 0.199 277.7);
Tailwind
colors: {
  custom: {
    50: '#836bcd',
    500: '#3d31b6',
    950: '#000000',
  },
}
SCSS
$custom: #3d31b6;
$custom-light: #836bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31b6",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 245.414,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42296,
    "c": 0.19874,
    "h": 277.7
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#3D31B6
secondary
#C0C77C
accent
#E147D3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3D31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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