#3D339A#3D339A

#3D339A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.161 H 280.6°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#3D339A
RGBrgb(61, 51, 154)
HSLhsl(246, 50%, 40%)
HSVhsv(246, 67%, 60%)
CMYKcmyk(60.4%, 66.9%, 0%, 39.6%)
CIE-LABlab(28.62, 35.05, -54.91)
CIE-LCHlch(28.62, 65.14, 302.55°)
OKLaboklab(39.95% 0.0296 -0.1581)
OKLCHoklch(39.95% 0.161 280.6)
XYZxyz(8.9392, 5.6922, 31.1932)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D339A #909A33
analogous
#335D9A #3D339A #70339A
triadic
#3D339A #9A3D33 #339A3D
tetradic
#3D339A #9A335D #909A33 #339A70
square
#3D339A #9A335D #909A33 #339A70
split-complementary
#3D339A #9A7033 #5D9A33
monochromatic
#19153E #2B246C #3D339A #5448C2 #7F76D2

Accessibility & contrast

On white

9.82
#3D339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3D339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D339A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D339A#FFFFFF#000000##FFFFFF
##3D339A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3d339a;
/* rgb */ color: rgb(61, 51, 154);
/* oklch */ color: oklch(39.9% 0.161 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d6bb9',
    500: '#3d339a',
    950: '#000000',
  },
}
SCSS
$custom: #3d339a;
$custom-light: #7d6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d339a",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 245.825,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39945,
    "c": 0.16082,
    "h": 280.6
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#3D339A
secondary
#B3BA6F
accent
#DA4ECC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3D339A

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

Preview Lab → · Contrast checker → · Palette generator →

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