#3A3A85#3A3A85

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

Color values

HEX#3A3A85
RGBrgb(58, 58, 133)
HSLhsl(240, 39%, 37%)
HSVhsv(240, 56%, 52%)
CMYKcmyk(56.4%, 56.4%, 0%, 47.8%)
CIE-LABlab(28.43, 22.86, -42.29)
CIE-LCHlch(28.43, 48.08, 298.39°)
OKLaboklab(39.21% 0.0195 -0.121)
OKLCHoklch(39.21% 0.123 279.1)
XYZxyz(7.4903, 5.6186, 22.8756)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3A85 #85853A
analogous
#3A6085 #3A3A85 #603A85
triadic
#3A3A85 #853A3A #3A853A
tetradic
#3A3A85 #853A60 #85853A #3A8560
square
#3A3A85 #853A60 #85853A #3A8560
split-complementary
#3A3A85 #85603A #60853A
monochromatic
#151530 #27275A #3A3A85 #4D4DB0 #7676C3

Accessibility & contrast

On white

9.89
#3A3A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3A85
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3A85#FFFFFF#000000##FFFFFF
##3A3A851.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4688
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#164B59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a3a85;
/* rgb */ color: rgb(58, 58, 133);
/* oklch */ color: oklch(39.2% 0.123 279.1);
Tailwind
colors: {
  custom: {
    50: '#7770a9',
    500: '#3a3a85',
    950: '#000000',
  },
}
SCSS
$custom: #3a3a85;
$custom-light: #7770a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3a85",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 39.267,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.12259,
    "h": 279.1
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

primary
#3A3A85
secondary
#ADAD6E
accent
#CF59CF
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #3A3A85

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

Preview Lab → · Contrast checker → · Palette generator →

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