#3A3BA2#3A3BA2

#3A3BA2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.162 H 276.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#3A3BA2
RGBrgb(58, 59, 162)
HSLhsl(239, 47%, 43%)
HSVhsv(239, 64%, 64%)
CMYKcmyk(64.2%, 63.6%, 0%, 36.5%)
CIE-LABlab(30.96, 32.26, -55.95)
CIE-LCHlch(30.96, 64.59, 299.97°)
OKLaboklab(41.8% 0.018 -0.1612)
OKLCHoklch(41.8% 0.162 276.4)
XYZxyz(9.8284, 6.6353, 34.9382)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3BA2 #A2A13A
analogous
#3A6FA2 #3A3BA2 #6D3AA2
triadic
#3A3BA2 #A23A3B #3BA23A
tetradic
#3A3BA2 #A23A6F #A2A13A #3AA26D
square
#3A3BA2 #A23A6F #A2A13A #3AA26D
split-complementary
#3A3BA2 #A26D3A #6FA23A
monochromatic
#1A1A48 #2A2B75 #3A3BA2 #5758C3 #8484D3

Accessibility & contrast

On white

9.02
#3A3BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3A3BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3BA2
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3BA2#FFFFFF#000000##FFFFFF
##3A3BA21.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a3ba2;
/* rgb */ color: rgb(58, 59, 162);
/* oklch */ color: oklch(41.8% 0.162 276.4);
Tailwind
colors: {
  custom: {
    50: '#7c71be',
    500: '#3a3ba2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ba2;
$custom-light: #7c71be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ba2",
  "rgb": {
    "r": 58,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 239.423,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.16219,
    "h": 276.4
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#3A3BA2
secondary
#BDBC7B
accent
#D651D7
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A3BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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