#3A3498#3A3498

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

Color values

HEX#3A3498
RGBrgb(58, 52, 152)
HSLhsl(244, 49%, 40%)
HSVhsv(244, 66%, 60%)
CMYKcmyk(61.8%, 65.8%, 0%, 40.4%)
CIE-LABlab(28.44, 33.26, -54.00)
CIE-LCHlch(28.44, 63.42, 301.63°)
OKLaboklab(39.7% 0.0249 -0.1555)
OKLCHoklch(39.7% 0.157 279.1)
XYZxyz(8.6386, 5.6219, 30.3296)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3498 #929834
analogous
#346098 #3A3498 #6C3498
triadic
#3A3498 #983A34 #34983A
tetradic
#3A3498 #983460 #929834 #34986C
square
#3A3498 #983460 #929834 #34986C
split-complementary
#3A3498 #986C34 #609834
monochromatic
#17153D #29246A #3A3498 #5049C1 #7C76D0

Accessibility & contrast

On white

9.88
#3A3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3498
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3498#FFFFFF#000000##FFFFFF
##3A34981.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a3498;
/* rgb */ color: rgb(58, 52, 152);
/* oklch */ color: oklch(39.7% 0.157 279.1);
Tailwind
colors: {
  custom: {
    50: '#7b6cb7',
    500: '#3a3498',
    950: '#000000',
  },
}
SCSS
$custom: #3a3498;
$custom-light: #7b6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3498",
  "rgb": {
    "r": 58,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 243.6,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.39695,
    "c": 0.15748,
    "h": 279.1
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#3A3498
secondary
#B4B96F
accent
#D94FD0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3498

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

Preview Lab → · Contrast checker → · Palette generator →

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