#3A3EA2#3A3EA2

#3A3EA2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.158 H 275.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#3A3EA2
RGBrgb(58, 62, 162)
HSLhsl(238, 47%, 43%)
HSVhsv(238, 64%, 64%)
CMYKcmyk(64.2%, 61.7%, 0%, 36.5%)
CIE-LABlab(31.70, 30.34, -54.75)
CIE-LCHlch(31.70, 62.60, 298.99°)
OKLaboklab(42.34% 0.0153 -0.1577)
OKLCHoklch(42.34% 0.158 275.6)
XYZxyz(9.9870, 6.9526, 34.9911)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EA2 #A29E3A
analogous
#3A72A2 #3A3EA2 #6A3AA2
triadic
#3A3EA2 #A23A3E #3EA23A
tetradic
#3A3EA2 #A23A72 #A29E3A #3AA26A
square
#3A3EA2 #A23A72 #A29E3A #3AA26A
split-complementary
#3A3EA2 #A26A3A #72A23A
monochromatic
#1A1C48 #2A2D75 #3A3EA2 #575BC3 #8487D3

Accessibility & contrast

On white

8.78
#3A3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3A3EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EA2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EA2#FFFFFF#000000##FFFFFF
##3A3EA21.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a3ea2;
/* rgb */ color: rgb(58, 62, 162);
/* oklch */ color: oklch(42.3% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#7c73be',
    500: '#3a3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ea2;
$custom-light: #7c73be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ea2",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 237.692,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.15839,
    "h": 275.6
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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