#3D31B9#3D31B9

#3D31B9 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.202 H 277.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#3D31B9
RGBrgb(61, 49, 185)
HSLhsl(245, 58%, 46%)
HSVhsv(245, 74%, 73%)
CMYKcmyk(67%, 73.5%, 0%, 27.5%)
CIE-LABlab(31.09, 46.29, -69.48)
CIE-LCHlch(31.09, 83.49, 303.67°)
OKLaboklab(42.6% 0.026 -0.2007)
OKLCHoklch(42.6% 0.202 277.4)
XYZxyz(11.7769, 6.6905, 46.5603)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31B9 #ADB931
analogous
#3169B9 #3D31B9 #8131B9
triadic
#3D31B9 #B93D31 #31B93D
tetradic
#3D31B9 #B93169 #ADB931 #31B981
square
#3D31B9 #B93169 #ADB931 #31B981
split-complementary
#3D31B9 #B98131 #69B931
monochromatic
#1D1758 #2D2489 #3D31B9 #6055D2 #8D86DF

Accessibility & contrast

On white

8.98
#3D31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3D31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31B9
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31B9#FFFFFF#000000##FFFFFF
##3D31B91.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d31b9;
/* rgb */ color: rgb(61, 49, 185);
/* oklch */ color: oklch(42.6% 0.202 277.4);
Tailwind
colors: {
  custom: {
    50: '#836bcf',
    500: '#3d31b9',
    950: '#000000',
  },
}
SCSS
$custom: #3d31b9;
$custom-light: #836bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31b9",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 245.294,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.20239,
    "h": 277.4
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#3D31B9
secondary
#C2C87D
accent
#E146D4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3D31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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