#3D338D#3D338D

#3D338D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.143 H 282.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#3D338D
RGBrgb(61, 51, 141)
HSLhsl(247, 47%, 38%)
HSVhsv(247, 64%, 55%)
CMYKcmyk(56.7%, 63.8%, 0%, 44.7%)
CIE-LABlab(27.52, 30.73, -48.71)
CIE-LCHlch(27.52, 57.60, 302.25°)
OKLaboklab(38.8% 0.0309 -0.1399)
OKLCHoklch(38.8% 0.143 282.5)
XYZxyz(7.9145, 5.2824, 25.7967)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D338D #838D33
analogous
#33568D #3D338D #6A338D
triadic
#3D338D #8D3D33 #338D3D
tetradic
#3D338D #8D3356 #838D33 #338D6A
square
#3D338D #8D3356 #838D33 #338D6A
split-complementary
#3D338D #8D6A33 #568D33
monochromatic
#161233 #2A2360 #3D338D #5043BA #7A6FCB

Accessibility & contrast

On white

10.21
#3D338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3D338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D338D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D338D#FFFFFF#000000##FFFFFF
##3D338D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#17495B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d338d;
/* rgb */ color: rgb(61, 51, 141);
/* oklch */ color: oklch(38.8% 0.143 282.5);
Tailwind
colors: {
  custom: {
    50: '#7b6baf',
    500: '#3d338d',
    950: '#000000',
  },
}
SCSS
$custom: #3d338d;
$custom-light: #7b6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d338d",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 246.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38804,
    "c": 0.14324,
    "h": 282.5
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#3D338D
secondary
#ABB369
accent
#D751C8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3D338D

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

Preview Lab → · Contrast checker → · Palette generator →

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