#3A3899#3A3899

#3A3899 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.154 H 277.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#3A3899
RGBrgb(58, 56, 153)
HSLhsl(241, 46%, 41%)
HSVhsv(241, 63%, 60%)
CMYKcmyk(62.1%, 63.4%, 0%, 40%)
CIE-LABlab(29.48, 31.07, -52.91)
CIE-LCHlch(29.48, 61.36, 300.42°)
OKLaboklab(40.48% 0.0212 -0.1523)
OKLCHoklch(40.48% 0.154 277.9)
XYZxyz(8.9070, 6.0271, 30.8248)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3899 #979938
analogous
#386699 #3A3899 #6A3899
triadic
#3A3899 #993A38 #38993A
tetradic
#3A3899 #993866 #979938 #38996A
square
#3A3899 #993866 #979938 #38996A
split-complementary
#3A3899 #996A38 #669938
monochromatic
#18173F #29286C #3A3899 #524FBF #7E7CCF

Accessibility & contrast

On white

9.52
#3A3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3A3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3899
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3899#FFFFFF#000000##FFFFFF
##3A38991.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a3899;
/* rgb */ color: rgb(58, 56, 153);
/* oklch */ color: oklch(40.5% 0.154 277.9);
Tailwind
colors: {
  custom: {
    50: '#7b6fb8',
    500: '#3a3899',
    950: '#000000',
  },
}
SCSS
$custom: #3a3899;
$custom-light: #7b6fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3899",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 241.237,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40483,
    "c": 0.15374,
    "h": 277.9
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#3A3899
secondary
#B7B874
accent
#D652D3
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3899

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

Preview Lab → · Contrast checker → · Palette generator →

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