#3A3AB5#3A3AB5

#3A3AB5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.4% C 0.188 H 275.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3A3AB5
RGBrgb(58, 58, 181)
HSLhsl(240, 51%, 47%)
HSVhsv(240, 68%, 71%)
CMYKcmyk(68%, 68%, 0%, 29%)
CIE-LABlab(32.39, 39.39, -64.98)
CIE-LCHlch(32.39, 75.99, 301.22°)
OKLaboklab(43.36% 0.017 -0.1877)
OKLCHoklch(43.36% 0.188 275.2)
XYZxyz(11.5957, 7.2608, 44.4975)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AB5 #B5B53A
analogous
#3A78B5 #3A3AB5 #783AB5
triadic
#3A3AB5 #B53A3A #3AB53A
tetradic
#3A3AB5 #B53A78 #B5B53A #3AB578
square
#3A3AB5 #B53A78 #B5B53A #3AB578
split-complementary
#3A3AB5 #B5783A #78B53A
monochromatic
#1C1C58 #2B2B87 #3A3AB5 #6060CC #8E8EDB

Accessibility & contrast

On white

8.56
#3A3AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A3AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AB5
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AB5#FFFFFF#000000##FFFFFF
##3A3AB51.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a3ab5;
/* rgb */ color: rgb(58, 58, 181);
/* oklch */ color: oklch(43.4% 0.188 275.2);
Tailwind
colors: {
  custom: {
    50: '#8071cc',
    500: '#3a3ab5',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ab5;
$custom-light: #8071cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ab5",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 240,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43358,
    "c": 0.18843,
    "h": 275.2
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#3A3AB5
secondary
#C6C685
accent
#DB4DDB
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A3AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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