#3D31B7#3D31B7

#3D31B7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.4% C 0.200 H 277.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#3D31B7
RGBrgb(61, 49, 183)
HSLhsl(245, 58%, 45%)
HSVhsv(245, 73%, 72%)
CMYKcmyk(66.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.89, 45.65, -68.63)
CIE-LCHlch(30.89, 82.42, 303.63°)
OKLaboklab(42.4% 0.0264 -0.1982)
OKLCHoklch(42.4% 0.2 277.6)
XYZxyz(11.5673, 6.6066, 45.4562)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31B7 #ABB731
analogous
#3168B7 #3D31B7 #8031B7
triadic
#3D31B7 #B73D31 #31B73D
tetradic
#3D31B7 #B73168 #ABB731 #31B780
square
#3D31B7 #B73168 #ABB731 #31B780
split-complementary
#3D31B7 #B78031 #68B731
monochromatic
#1D1756 #2D2487 #3D31B7 #5F54D1 #8C84DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3D31B7#FFFFFF#000000##FFFFFF
##3D31B71.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)
#004EBB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3d31b7;
/* rgb */ color: rgb(61, 49, 183);
/* oklch */ color: oklch(42.4% 0.200 277.6);
Tailwind
colors: {
  custom: {
    50: '#836bce',
    500: '#3d31b7',
    950: '#000000',
  },
}
SCSS
$custom: #3d31b7;
$custom-light: #836bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31b7",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 245.373,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.19996,
    "h": 277.6
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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