#3A339A#3A339A

#3A339A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.161 H 279.1°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#3A339A
RGBrgb(58, 51, 154)
HSLhsl(244, 50%, 40%)
HSVhsv(244, 67%, 60%)
CMYKcmyk(62.3%, 66.9%, 0%, 39.6%)
CIE-LABlab(28.38, 34.56, -55.32)
CIE-LCHlch(28.38, 65.23, 302.00°)
OKLaboklab(39.71% 0.0256 -0.1594)
OKLCHoklch(39.71% 0.161 279.1)
XYZxyz(8.7596, 5.5996, 31.1848)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A339A #939A33
analogous
#335F9A #3A339A #6E339A
triadic
#3A339A #9A3A33 #339A3A
tetradic
#3A339A #9A335F #939A33 #339A6E
square
#3A339A #9A335F #939A33 #339A6E
split-complementary
#3A339A #9A6E33 #5F9A33
monochromatic
#17153E #29246C #3A339A #5048C2 #7C76D2

Accessibility & contrast

On white

9.91
#3A339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A339A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A339A#FFFFFF#000000##FFFFFF
##3A339A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a339a;
/* rgb */ color: rgb(58, 51, 154);
/* oklch */ color: oklch(39.7% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#7b6bb9',
    500: '#3a339a',
    950: '#000000',
  },
}
SCSS
$custom: #3a339a;
$custom-light: #7b6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a339a",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 244.078,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39707,
    "c": 0.1614,
    "h": 279.1
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#3A339A
secondary
#B5BA6F
accent
#DA4ED0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A339A

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

Preview Lab → · Contrast checker → · Palette generator →

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