#3A339D#3A339D

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

Color values

HEX#3A339D
RGBrgb(58, 51, 157)
HSLhsl(244, 51%, 41%)
HSVhsv(244, 68%, 62%)
CMYKcmyk(63.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(28.64, 35.57, -56.71)
CIE-LCHlch(28.64, 66.94, 302.10°)
OKLaboklab(39.98% 0.0252 -0.1635)
OKLCHoklch(39.98% 0.165 278.8)
XYZxyz(9.0126, 5.7008, 32.5172)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A339D #969D33
analogous
#33619D #3A339D #6F339D
triadic
#3A339D #9D3A33 #339D3A
tetradic
#3A339D #9D3361 #969D33 #339D6F
square
#3A339D #9D3361 #969D33 #339D6F
split-complementary
#3A339D #9D6F33 #619D33
monochromatic
#181541 #29246F #3A339D #5149C4 #7D77D3

Accessibility & contrast

On white

9.81
#3A339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A339D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A339D#FFFFFF#000000##FFFFFF
##3A339D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a339d;
/* rgb */ color: rgb(58, 51, 157);
/* oklch */ color: oklch(40.0% 0.165 278.8);
Tailwind
colors: {
  custom: {
    50: '#7c6bbb',
    500: '#3a339d',
    950: '#000000',
  },
}
SCSS
$custom: #3a339d;
$custom-light: #7c6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a339d",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 243.962,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39981,
    "c": 0.16539,
    "h": 278.8
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A339D

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

Preview Lab → · Contrast checker → · Palette generator →

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