#3D339F#3D339F

#3D339F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.167 H 280.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#3D339F
RGBrgb(61, 51, 159)
HSLhsl(246, 51%, 41%)
HSVhsv(246, 68%, 62%)
CMYKcmyk(61.6%, 67.9%, 0%, 37.6%)
CIE-LABlab(29.06, 36.70, -57.23)
CIE-LCHlch(29.06, 67.99, 302.67°)
OKLaboklab(40.4% 0.029 -0.1649)
OKLCHoklch(40.4% 0.167 280)
XYZxyz(9.3643, 5.8623, 33.4322)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D339F #959F33
analogous
#335F9F #3D339F #73339F
triadic
#3D339F #9F3D33 #339F3D
tetradic
#3D339F #9F335F #959F33 #339F73
square
#3D339F #9F335F #959F33 #339F73
split-complementary
#3D339F #9F7333 #5F9F33
monochromatic
#191542 #2B2471 #3D339F #564AC5 #8179D4

Accessibility & contrast

On white

9.67
#3D339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3D339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D339F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D339F#FFFFFF#000000##FFFFFF
##3D339F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d339f;
/* rgb */ color: rgb(61, 51, 159);
/* oklch */ color: oklch(40.4% 0.167 280.0);
Tailwind
colors: {
  custom: {
    50: '#7e6cbc',
    500: '#3d339f',
    950: '#000000',
  },
}
SCSS
$custom: #3d339f;
$custom-light: #7e6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d339f",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 245.556,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40399,
    "c": 0.16742,
    "h": 280
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#3D339F
secondary
#B5BC71
accent
#DB4DCE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3D339F

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

Preview Lab → · Contrast checker → · Palette generator →

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