#3B339B#3B339B

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

Color values

HEX#3B339B
RGBrgb(59, 51, 155)
HSLhsl(245, 50%, 40%)
HSVhsv(245, 67%, 61%)
CMYKcmyk(61.9%, 67.1%, 0%, 39.2%)
CIE-LABlab(28.55, 35.05, -55.65)
CIE-LCHlch(28.55, 65.77, 302.21°)
OKLaboklab(39.88% 0.0268 -0.1603)
OKLCHoklch(39.88% 0.163 279.5)
XYZxyz(8.9020, 5.6634, 31.6280)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B339B #939B33
analogous
#335F9B #3B339B #6F339B
triadic
#3B339B #9B3B33 #339B3B
tetradic
#3B339B #9B335F #939B33 #339B6F
square
#3B339B #9B335F #939B33 #339B6F
split-complementary
#3B339B #9B6F33 #5F9B33
monochromatic
#18153F #29246D #3B339B #5248C3 #7D76D2

Accessibility & contrast

On white

9.85
#3B339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3B339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B339B
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B339B#FFFFFF#000000##FFFFFF
##3B339B1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3b339b;
/* rgb */ color: rgb(59, 51, 155);
/* oklch */ color: oklch(39.9% 0.163 279.5);
Tailwind
colors: {
  custom: {
    50: '#7c6bb9',
    500: '#3b339b',
    950: '#000000',
  },
}
SCSS
$custom: #3b339b;
$custom-light: #7c6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b339b",
  "rgb": {
    "r": 59,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 244.615,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39876,
    "c": 0.16253,
    "h": 279.5
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#3B339B
secondary
#B5BA6F
accent
#DA4ECF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3B339B

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

Preview Lab → · Contrast checker → · Palette generator →

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