#3D3A97#3D3A97

#3D3A97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.148 H 279.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#3D3A97
RGBrgb(61, 58, 151)
HSLhsl(242, 44%, 41%)
HSVhsv(242, 62%, 59%)
CMYKcmyk(59.6%, 61.6%, 0%, 40.8%)
CIE-LABlab(30.04, 29.63, -50.77)
CIE-LCHlch(30.04, 58.78, 300.27°)
OKLaboklab(40.9% 0.0233 -0.1459)
OKLCHoklch(40.9% 0.148 279.1)
XYZxyz(9.0217, 6.2519, 30.0035)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D3A97 #94973A
analogous
#3A6597 #3D3A97 #6B3A97
triadic
#3D3A97 #973D3A #3A973D
tetradic
#3D3A97 #973A65 #94973A #3A976B
square
#3D3A97 #973A65 #94973A #3A976B
split-complementary
#3D3A97 #976B3A #65973A
monochromatic
#19183F #2B296B #3D3A97 #5552BC #817ECD

Accessibility & contrast

On white

9.33
#3D3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3D3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D3A97
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D3A97#FFFFFF#000000##FFFFFF
##3D3A971.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3d3a97;
/* rgb */ color: rgb(61, 58, 151);
/* oklch */ color: oklch(40.9% 0.148 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c70b6',
    500: '#3d3a97',
    950: '#000000',
  },
}
SCSS
$custom: #3d3a97;
$custom-light: #7c70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d3a97",
  "rgb": {
    "r": 61,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 241.935,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40901,
    "c": 0.14772,
    "h": 279.1
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

primary
#3D3A97
secondary
#B5B776
accent
#D454D0
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3D3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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