#3A3FA2#3A3FA2

#3A3FA2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.157 H 275.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA2
RGBrgb(58, 63, 162)
HSLhsl(237, 47%, 43%)
HSVhsv(237, 64%, 64%)
CMYKcmyk(64.2%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.95, 29.70, -54.35)
CIE-LCHlch(31.95, 61.93, 298.65°)
OKLaboklab(42.53% 0.0145 -0.1564)
OKLCHoklch(42.53% 0.157 275.3)
XYZxyz(10.0419, 7.0624, 35.0094)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA2 #A29D3A
analogous
#3A73A2 #3A3FA2 #693AA2
triadic
#3A3FA2 #A23A3F #3FA23A
tetradic
#3A3FA2 #A23A73 #A29D3A #3AA269
square
#3A3FA2 #A23A73 #A29D3A #3AA269
split-complementary
#3A3FA2 #A2693A #73A23A
monochromatic
#1A1C48 #2A2D75 #3A3FA2 #575CC3 #8487D3

Accessibility & contrast

On white

8.70
#3A3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3A3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA2#FFFFFF#000000##FFFFFF
##3A3FA21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a3fa2;
/* rgb */ color: rgb(58, 63, 162);
/* oklch */ color: oklch(42.5% 0.157 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c74be',
    500: '#3a3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa2;
$custom-light: #7c74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa2",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 237.115,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42528,
    "c": 0.15711,
    "h": 275.3
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

primary
#3A3FA2
secondary
#BDBA7B
accent
#D051D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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