#3A36A2#3A36A2

#3A36A2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.168 H 277.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#3A36A2
RGBrgb(58, 54, 162)
HSLhsl(242, 50%, 42%)
HSVhsv(242, 67%, 64%)
CMYKcmyk(64.2%, 66.7%, 0%, 36.5%)
CIE-LABlab(29.78, 35.40, -57.89)
CIE-LCHlch(29.78, 67.86, 301.45°)
OKLaboklab(40.94% 0.0222 -0.1669)
OKLCHoklch(40.94% 0.168 277.6)
XYZxyz(9.5836, 6.1457, 34.8566)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A36A2 #9EA236
analogous
#3668A2 #3A36A2 #7036A2
triadic
#3A36A2 #A23A36 #36A23A
tetradic
#3A36A2 #A23668 #9EA236 #36A270
square
#3A36A2 #A23668 #9EA236 #36A270
split-complementary
#3A36A2 #A27036 #68A236
monochromatic
#191746 #2A2774 #3A36A2 #5550C5 #817ED4

Accessibility & contrast

On white

9.42
#3A36A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3A36A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A36A2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A36A2#FFFFFF#000000##FFFFFF
##3A36A21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a36a2;
/* rgb */ color: rgb(58, 54, 162);
/* oklch */ color: oklch(40.9% 0.168 277.6);
Tailwind
colors: {
  custom: {
    50: '#7d6ebe',
    500: '#3a36a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a36a2;
$custom-light: #7d6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a36a2",
  "rgb": {
    "r": 58,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 242.222,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40939,
    "c": 0.16837,
    "h": 277.6
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#3A36A2
secondary
#BBBD77
accent
#DA4ED4
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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