#3A339F#3A339F

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

Color values

HEX#3A339F
RGBrgb(58, 51, 159)
HSLhsl(244, 51%, 41%)
HSVhsv(244, 68%, 62%)
CMYKcmyk(63.5%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.82, 36.24, -57.63)
CIE-LCHlch(28.82, 68.08, 302.16°)
OKLaboklab(40.17% 0.025 -0.1661)
OKLCHoklch(40.17% 0.168 278.6)
XYZxyz(9.1847, 5.7697, 33.4238)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A339F #989F33
analogous
#33629F #3A339F #70339F
triadic
#3A339F #9F3A33 #339F3A
tetradic
#3A339F #9F3362 #989F33 #339F70
square
#3A339F #9F3362 #989F33 #339F70
split-complementary
#3A339F #9F7033 #629F33
monochromatic
#181542 #292471 #3A339F #524AC5 #7E79D4

Accessibility & contrast

On white

9.75
#3A339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A339F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A339F#FFFFFF#000000##FFFFFF
##3A339F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a339f;
/* rgb */ color: rgb(58, 51, 159);
/* oklch */ color: oklch(40.2% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#7c6bbc',
    500: '#3a339f',
    950: '#000000',
  },
}
SCSS
$custom: #3a339f;
$custom-light: #7c6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a339f",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 243.889,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40166,
    "c": 0.16802,
    "h": 278.6
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#3A339F
secondary
#B8BC71
accent
#DB4DD2
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A339F

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

Preview Lab → · Contrast checker → · Palette generator →

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