#3D339D#3D339D

#3D339D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.165 H 280.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#3D339D
RGBrgb(61, 51, 157)
HSLhsl(246, 51%, 41%)
HSVhsv(246, 68%, 62%)
CMYKcmyk(61.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(28.89, 36.04, -56.31)
CIE-LCHlch(28.89, 66.85, 302.62°)
OKLaboklab(40.22% 0.0293 -0.1622)
OKLCHoklch(40.22% 0.165 280.2)
XYZxyz(9.1922, 5.7934, 32.5256)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D339D #939D33
analogous
#335E9D #3D339D #72339D
triadic
#3D339D #9D3D33 #339D3D
tetradic
#3D339D #9D335E #939D33 #339D72
square
#3D339D #9D335E #939D33 #339D72
split-complementary
#3D339D #9D7233 #5E9D33
monochromatic
#191541 #2B246F #3D339D #5549C4 #8077D3

Accessibility & contrast

On white

9.73
#3D339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3D339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D339D
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D339D#FFFFFF#000000##FFFFFF
##3D339D1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d339d;
/* rgb */ color: rgb(61, 51, 157);
/* oklch */ color: oklch(40.2% 0.165 280.2);
Tailwind
colors: {
  custom: {
    50: '#7e6cbb',
    500: '#3d339d',
    950: '#000000',
  },
}
SCSS
$custom: #3d339d;
$custom-light: #7e6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d339d",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 245.66,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40216,
    "c": 0.16479,
    "h": 280.2
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D339D

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

Preview Lab → · Contrast checker → · Palette generator →

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