#3D31B8#3D31B8

#3D31B8 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.201 H 277.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#3D31B8
RGBrgb(61, 49, 184)
HSLhsl(245, 58%, 46%)
HSVhsv(245, 73%, 72%)
CMYKcmyk(66.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.99, 45.97, -69.06)
CIE-LCHlch(30.99, 82.96, 303.65°)
OKLaboklab(42.5% 0.0262 -0.1995)
OKLCHoklch(42.5% 0.201 277.5)
XYZxyz(11.6717, 6.6484, 46.0063)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31B8 #ACB831
analogous
#3169B8 #3D31B8 #8031B8
triadic
#3D31B8 #B83D31 #31B83D
tetradic
#3D31B8 #B83169 #ACB831 #31B880
square
#3D31B8 #B83169 #ACB831 #31B880
split-complementary
#3D31B8 #B88031 #69B831
monochromatic
#1D1757 #2D2488 #3D31B8 #6055D2 #8D85DE

Accessibility & contrast

On white

9.01
#3D31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3D31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31B8
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31B8#FFFFFF#000000##FFFFFF
##3D31B81.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3d31b8;
/* rgb */ color: rgb(61, 49, 184);
/* oklch */ color: oklch(42.5% 0.201 277.5);
Tailwind
colors: {
  custom: {
    50: '#836bcf',
    500: '#3d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #3d31b8;
$custom-light: #836bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31b8",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 245.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42496,
    "c": 0.20117,
    "h": 277.5
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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