#3D339B#3D339B

#3D339B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.162 H 280.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#3D339B
RGBrgb(61, 51, 155)
HSLhsl(246, 50%, 40%)
HSVhsv(246, 67%, 61%)
CMYKcmyk(60.6%, 67.1%, 0%, 39.2%)
CIE-LABlab(28.71, 35.38, -55.38)
CIE-LCHlch(28.71, 65.71, 302.57°)
OKLaboklab(40.03% 0.0295 -0.1594)
OKLCHoklch(40.03% 0.162 280.5)
XYZxyz(9.0228, 5.7257, 31.6337)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D339B #919B33
analogous
#335D9B #3D339B #71339B
triadic
#3D339B #9B3D33 #339B3D
tetradic
#3D339B #9B335D #919B33 #339B71
square
#3D339B #9B335D #919B33 #339B71
split-complementary
#3D339B #9B7133 #5D9B33
monochromatic
#19153F #2B246D #3D339B #5448C3 #7F76D2

Accessibility & contrast

On white

9.79
#3D339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D339B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D339B#FFFFFF#000000##FFFFFF
##3D339B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d339b;
/* rgb */ color: rgb(61, 51, 155);
/* oklch */ color: oklch(40.0% 0.162 280.5);
Tailwind
colors: {
  custom: {
    50: '#7d6bb9',
    500: '#3d339b',
    950: '#000000',
  },
}
SCSS
$custom: #3d339b;
$custom-light: #7d6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d339b",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 245.769,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40035,
    "c": 0.16215,
    "h": 280.5
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D339B

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

Preview Lab → · Contrast checker → · Palette generator →

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