#3A3796#3A3796

#3A3796 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.151 H 278.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3A3796
RGBrgb(58, 55, 150)
HSLhsl(242, 46%, 40%)
HSVhsv(242, 63%, 59%)
CMYKcmyk(61.3%, 63.3%, 0%, 41.2%)
CIE-LABlab(28.99, 30.68, -51.88)
CIE-LCHlch(28.99, 60.27, 300.60°)
OKLaboklab(40.04% 0.0223 -0.1492)
OKLCHoklch(40.04% 0.151 278.5)
XYZxyz(8.6144, 5.8333, 29.5202)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3796 #939637
analogous
#376396 #3A3796 #6A3796
triadic
#3A3796 #963A37 #37963A
tetradic
#3A3796 #963763 #939637 #37966A
square
#3A3796 #963763 #939637 #37966A
split-complementary
#3A3796 #966A37 #639637
monochromatic
#17163C #292769 #3A3796 #504DBE #7C79CE

Accessibility & contrast

On white

9.69
#3A3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3A3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3796
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3796#FFFFFF#000000##FFFFFF
##3A37961.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a3796;
/* rgb */ color: rgb(58, 55, 150);
/* oklch */ color: oklch(40.0% 0.151 278.5);
Tailwind
colors: {
  custom: {
    50: '#7a6eb6',
    500: '#3a3796',
    950: '#000000',
  },
}
SCSS
$custom: #3a3796;
$custom-light: #7a6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3796",
  "rgb": {
    "r": 58,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 241.895,
    "s": 46.341,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40045,
    "c": 0.15091,
    "h": 278.5
  },
  "luminance": 0.05834
}

Semantic roles & 50–950 ramp

primary
#3A3796
secondary
#B5B772
accent
#D652D2
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3796

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

Preview Lab → · Contrast checker → · Palette generator →

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