#3A3798#3A3798

#3A3798 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.154 H 278.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#3A3798
RGBrgb(58, 55, 152)
HSLhsl(242, 47%, 41%)
HSVhsv(242, 64%, 60%)
CMYKcmyk(61.8%, 63.8%, 0%, 40.4%)
CIE-LABlab(29.15, 31.37, -52.83)
CIE-LCHlch(29.15, 61.44, 300.70°)
OKLaboklab(40.22% 0.0222 -0.152)
OKLCHoklch(40.22% 0.154 278.3)
XYZxyz(8.7768, 5.8983, 30.3756)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3798 #959837
analogous
#376498 #3A3798 #6A3798
triadic
#3A3798 #983A37 #37983A
tetradic
#3A3798 #983764 #959837 #37986A
square
#3A3798 #983764 #959837 #37986A
split-complementary
#3A3798 #986A37 #649837
monochromatic
#18163E #29276B #3A3798 #514DBF #7D7ACF

Accessibility & contrast

On white

9.63
#3A3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3A3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3798
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3798#FFFFFF#000000##FFFFFF
##3A37981.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a3798;
/* rgb */ color: rgb(58, 55, 152);
/* oklch */ color: oklch(40.2% 0.154 278.3);
Tailwind
colors: {
  custom: {
    50: '#7b6eb7',
    500: '#3a3798',
    950: '#000000',
  },
}
SCSS
$custom: #3a3798;
$custom-light: #7b6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3798",
  "rgb": {
    "r": 58,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 241.856,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.15365,
    "h": 278.3
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

primary
#3A3798
secondary
#B6B873
accent
#D651D2
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3798

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

Preview Lab → · Contrast checker → · Palette generator →

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