#3D338F#3D338F

#3D338F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.146 H 282.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#3D338F
RGBrgb(61, 51, 143)
HSLhsl(247, 47%, 38%)
HSVhsv(247, 64%, 56%)
CMYKcmyk(57.3%, 64.3%, 0%, 43.9%)
CIE-LABlab(27.69, 31.40, -49.68)
CIE-LCHlch(27.69, 58.77, 302.29°)
OKLaboklab(38.98% 0.0307 -0.1427)
OKLCHoklch(38.98% 0.146 282.2)
XYZxyz(8.0647, 5.3424, 26.5875)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D338F #858F33
analogous
#33578F #3D338F #6B338F
triadic
#3D338F #8F3D33 #338F3D
tetradic
#3D338F #8F3357 #858F33 #338F6B
square
#3D338F #8F3357 #858F33 #338F6B
split-complementary
#3D338F #8F6B33 #578F33
monochromatic
#171335 #2A2362 #3D338F #5043BC #7A70CC

Accessibility & contrast

On white

10.15
#3D338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3D338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D338F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D338F#FFFFFF#000000##FFFFFF
##3D338F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#144A5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d338f;
/* rgb */ color: rgb(61, 51, 143);
/* oklch */ color: oklch(39.0% 0.146 282.2);
Tailwind
colors: {
  custom: {
    50: '#7b6bb1',
    500: '#3d338f',
    950: '#000000',
  },
}
SCSS
$custom: #3d338f;
$custom-light: #7b6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d338f",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 246.522,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38976,
    "c": 0.14599,
    "h": 282.2
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#3D338F
secondary
#ACB46A
accent
#D751C8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3D338F

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

Preview Lab → · Contrast checker → · Palette generator →

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