#3A3BA5#3A3BA5

#3A3BA5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.166 H 276.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#3A3BA5
RGBrgb(58, 59, 165)
HSLhsl(239, 48%, 44%)
HSVhsv(239, 65%, 65%)
CMYKcmyk(64.8%, 64.2%, 0%, 35.3%)
CIE-LABlab(31.21, 33.30, -57.35)
CIE-LCHlch(31.21, 66.32, 300.14°)
OKLaboklab(42.07% 0.0178 -0.1653)
OKLCHoklch(42.07% 0.166 276.1)
XYZxyz(10.0982, 6.7432, 36.3594)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3BA5 #A5A43A
analogous
#3A70A5 #3A3BA5 #6E3AA5
triadic
#3A3BA5 #A53A3B #3BA53A
tetradic
#3A3BA5 #A53A70 #A5A43A #3AA56E
square
#3A3BA5 #A53A70 #A5A43A #3AA56E
split-complementary
#3A3BA5 #A56E3A #70A53A
monochromatic
#1A1B4A #2A2B78 #3A3BA5 #5859C4 #8586D4

Accessibility & contrast

On white

8.94
#3A3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3A3BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3BA5
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3BA5#FFFFFF#000000##FFFFFF
##3A3BA51.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a3ba5;
/* rgb */ color: rgb(58, 59, 165);
/* oklch */ color: oklch(42.1% 0.166 276.1);
Tailwind
colors: {
  custom: {
    50: '#7d71c1',
    500: '#3a3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ba5;
$custom-light: #7d71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ba5",
  "rgb": {
    "r": 58,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 239.439,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.16624,
    "h": 276.1
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#3A3BA5
secondary
#BEBE7D
accent
#D650D8
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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