#3A3A91#3A3A91

#3A3A91 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.140 H 278.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#3A3A91
RGBrgb(58, 58, 145)
HSLhsl(240, 43%, 40%)
HSVhsv(240, 60%, 57%)
CMYKcmyk(60%, 60%, 0%, 43.1%)
CIE-LABlab(29.34, 27.02, -48.25)
CIE-LCHlch(29.34, 55.30, 299.25°)
OKLaboklab(40.17% 0.0196 -0.1386)
OKLCHoklch(40.17% 0.14 278.1)
XYZxyz(8.3672, 5.9694, 27.4939)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3A91 #91913A
analogous
#3A6691 #3A3A91 #663A91
triadic
#3A3A91 #913A3A #3A913A
tetradic
#3A3A91 #913A66 #91913A #3A9166
square
#3A3A91 #913A66 #91913A #3A9166
split-complementary
#3A3A91 #91663A #66913A
monochromatic
#17173A #292965 #3A3A91 #4F4FB9 #7B7BCA

Accessibility & contrast

On white

9.57
#3A3A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3A3A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3A91
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3A91#FFFFFF#000000##FFFFFF
##3A3A911.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a3a91;
/* rgb */ color: rgb(58, 58, 145);
/* oklch */ color: oklch(40.2% 0.140 278.1);
Tailwind
colors: {
  custom: {
    50: '#7970b2',
    500: '#3a3a91',
    950: '#000000',
  },
}
SCSS
$custom: #3a3a91;
$custom-light: #7970b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3a91",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 42.857,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.13994,
    "h": 278.1
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#3A3A91
secondary
#B4B473
accent
#D355D3
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3A91

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

Preview Lab → · Contrast checker → · Palette generator →

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