#3B339D#3B339D

#3B339D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.165 H 279.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#3B339D
RGBrgb(59, 51, 157)
HSLhsl(245, 51%, 41%)
HSVhsv(245, 68%, 62%)
CMYKcmyk(62.4%, 67.5%, 0%, 38.4%)
CIE-LABlab(28.72, 35.72, -56.58)
CIE-LCHlch(28.72, 66.91, 302.27°)
OKLaboklab(40.06% 0.0266 -0.163)
OKLCHoklch(40.06% 0.165 279.3)
XYZxyz(9.0713, 5.7311, 32.5199)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B339D #959D33
analogous
#33609D #3B339D #70339D
triadic
#3B339D #9D3B33 #339D3B
tetradic
#3B339D #9D3360 #959D33 #339D70
square
#3B339D #9D3360 #959D33 #339D70
split-complementary
#3B339D #9D7033 #609D33
monochromatic
#181541 #2A246F #3B339D #5349C4 #7E77D3

Accessibility & contrast

On white

9.78
#3B339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B339D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B339D#FFFFFF#000000##FFFFFF
##3B339D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.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: #3b339d;
/* rgb */ color: rgb(59, 51, 157);
/* oklch */ color: oklch(40.1% 0.165 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d6bbb',
    500: '#3b339d',
    950: '#000000',
  },
}
SCSS
$custom: #3b339d;
$custom-light: #7d6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3b339d",
  "rgb": {
    "r": 59,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 244.528,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40059,
    "c": 0.16518,
    "h": 279.3
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#3B339D
secondary
#B6BB70
accent
#DA4DD0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3B339D

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

Preview Lab → · Contrast checker → · Palette generator →

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