#3A349E#3A349E

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

Color values

HEX#3A349E
RGBrgb(58, 52, 158)
HSLhsl(243, 50%, 41%)
HSVhsv(243, 67%, 62%)
CMYKcmyk(63.3%, 67.1%, 0%, 38%)
CIE-LABlab(28.96, 35.29, -56.80)
CIE-LCHlch(28.96, 66.87, 301.85°)
OKLaboklab(40.24% 0.0243 -0.1637)
OKLCHoklch(40.24% 0.165 278.4)
XYZxyz(9.1425, 5.8234, 32.9834)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A349E #989E34
analogous
#34639E #3A349E #6F349E
triadic
#3A349E #9E3A34 #349E3A
tetradic
#3A349E #9E3463 #989E34 #349E6F
square
#3A349E #9E3463 #989E34 #349E6F
split-complementary
#3A349E #9E6F34 #639E34
monochromatic
#181642 #292570 #3A349E #524BC4 #7E79D3

Accessibility & contrast

On white

9.70
#3A349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3A349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A349E
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A349E#FFFFFF#000000##FFFFFF
##3A349E1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a349e;
/* rgb */ color: rgb(58, 52, 158);
/* oklch */ color: oklch(40.2% 0.165 278.4);
Tailwind
colors: {
  custom: {
    50: '#7c6cbc',
    500: '#3a349e',
    950: '#000000',
  },
}
SCSS
$custom: #3a349e;
$custom-light: #7c6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a349e",
  "rgb": {
    "r": 58,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 243.396,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40239,
    "c": 0.16549,
    "h": 278.4
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#3A349E
secondary
#B8BC72
accent
#DA4ED2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A349E

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

Preview Lab → · Contrast checker → · Palette generator →

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