#3A3C91#3A3C91

#3A3C91 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.137 H 277.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#3A3C91
RGBrgb(58, 60, 145)
HSLhsl(239, 43%, 40%)
HSVhsv(239, 60%, 57%)
CMYKcmyk(60%, 58.6%, 0%, 43.1%)
CIE-LABlab(29.85, 25.70, -47.41)
CIE-LCHlch(29.85, 53.93, 298.46°)
OKLaboklab(40.56% 0.0176 -0.1361)
OKLCHoklch(40.56% 0.137 277.3)
XYZxyz(8.4700, 6.1750, 27.5281)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3C91 #918F3A
analogous
#3A6791 #3A3C91 #643A91
triadic
#3A3C91 #913A3C #3C913A
tetradic
#3A3C91 #913A67 #918F3A #3A9164
square
#3A3C91 #913A67 #918F3A #3A9164
split-complementary
#3A3C91 #91643A #67913A
monochromatic
#17183A #292A65 #3A3C91 #4F52B9 #7B7DCA

Accessibility & contrast

On white

9.40
#3A3C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3A3C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3C91
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3C91#FFFFFF#000000##FFFFFF
##3A3C911.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a3c91;
/* rgb */ color: rgb(58, 60, 145);
/* oklch */ color: oklch(40.6% 0.137 277.3);
Tailwind
colors: {
  custom: {
    50: '#7971b2',
    500: '#3a3c91',
    950: '#000000',
  },
}
SCSS
$custom: #3a3c91;
$custom-light: #7971b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3c91",
  "rgb": {
    "r": 58,
    "g": 60,
    "b": 145
  },
  "hsl": {
    "h": 238.621,
    "s": 42.857,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.13721,
    "h": 277.3
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#3A3C91
secondary
#B4B273
accent
#D055D3
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3C91

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

Preview Lab → · Contrast checker → · Palette generator →

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