#3D339C#3D339C

#3D339C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.163 H 280.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#3D339C
RGBrgb(61, 51, 156)
HSLhsl(246, 51%, 41%)
HSVhsv(246, 67%, 61%)
CMYKcmyk(60.9%, 67.3%, 0%, 38.8%)
CIE-LABlab(28.80, 35.71, -55.84)
CIE-LCHlch(28.80, 66.28, 302.60°)
OKLaboklab(40.13% 0.0294 -0.1608)
OKLCHoklch(40.13% 0.163 280.4)
XYZxyz(9.1072, 5.7594, 32.0778)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D339C #929C33
analogous
#335D9C #3D339C #71339C
triadic
#3D339C #9C3D33 #339C3D
tetradic
#3D339C #9C335D #929C33 #339C71
square
#3D339C #9C335D #929C33 #339C71
split-complementary
#3D339C #9C7133 #5D9C33
monochromatic
#191540 #2B246E #3D339C #5449C3 #8077D3

Accessibility & contrast

On white

9.76
#3D339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3D339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D339C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D339C#FFFFFF#000000##FFFFFF
##3D339C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d339c;
/* rgb */ color: rgb(61, 51, 156);
/* oklch */ color: oklch(40.1% 0.163 280.4);
Tailwind
colors: {
  custom: {
    50: '#7d6bba',
    500: '#3d339c',
    950: '#000000',
  },
}
SCSS
$custom: #3d339c;
$custom-light: #7d6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d339c",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 245.714,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40125,
    "c": 0.16347,
    "h": 280.4
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#3D339C
secondary
#B4BB70
accent
#DA4ECD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3D339C

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

Preview Lab → · Contrast checker → · Palette generator →

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