#3A3AB6#3A3AB6

#3A3AB6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.190 H 275.1°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3A3AB6
RGBrgb(58, 58, 182)
HSLhsl(240, 52%, 47%)
HSVhsv(240, 68%, 71%)
CMYKcmyk(68.1%, 68.1%, 0%, 28.6%)
CIE-LABlab(32.48, 39.73, -65.42)
CIE-LCHlch(32.48, 76.54, 301.27°)
OKLaboklab(43.45% 0.0168 -0.189)
OKLCHoklch(43.45% 0.19 275.1)
XYZxyz(11.6987, 7.3020, 45.0398)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AB6 #B6B63A
analogous
#3A78B6 #3A3AB6 #783AB6
triadic
#3A3AB6 #B63A3A #3AB63A
tetradic
#3A3AB6 #B63A78 #B6B63A #3AB678
square
#3A3AB6 #B63A78 #B6B63A #3AB678
split-complementary
#3A3AB6 #B6783A #78B63A
monochromatic
#1C1C59 #2B2B88 #3A3AB6 #6161CD #8F8FDB

Accessibility & contrast

On white

8.53
#3A3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3A3AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AB6
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AB6#FFFFFF#000000##FFFFFF
##3A3AB61.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3ab6;
/* rgb */ color: rgb(58, 58, 182);
/* oklch */ color: oklch(43.5% 0.190 275.1);
Tailwind
colors: {
  custom: {
    50: '#8171cd',
    500: '#3a3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ab6;
$custom-light: #8171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ab6",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 240,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43452,
    "c": 0.18971,
    "h": 275.1
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

primary
#3A3AB6
secondary
#C6C686
accent
#DB4DDB
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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