#3A3BAB#3A3BAB

#3A3BAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.174 H 275.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#3A3BAB
RGBrgb(58, 59, 171)
HSLhsl(239, 49%, 45%)
HSVhsv(239, 66%, 67%)
CMYKcmyk(66.1%, 65.5%, 0%, 32.9%)
CIE-LABlab(31.73, 35.37, -60.11)
CIE-LCHlch(31.73, 69.74, 300.47°)
OKLaboklab(42.6% 0.0173 -0.1734)
OKLCHoklch(42.6% 0.174 275.7)
XYZxyz(10.6572, 6.9668, 39.3033)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3BAB #ABAA3A
analogous
#3A74AB #3A3BAB #723AAB
triadic
#3A3BAB #AB3A3B #3BAB3A
tetradic
#3A3BAB #AB3A74 #ABAA3A #3AAB72
square
#3A3BAB #AB3A74 #ABAA3A #3AAB72
split-complementary
#3A3BAB #AB723A #74AB3A
monochromatic
#1B1B50 #2A2B7D #3A3BAB #5B5CC7 #8989D7

Accessibility & contrast

On white

8.77
#3A3BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3BAB
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3BAB#FFFFFF#000000##FFFFFF
##3A3BAB1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a3bab;
/* rgb */ color: rgb(58, 59, 171);
/* oklch */ color: oklch(42.6% 0.174 275.7);
Tailwind
colors: {
  custom: {
    50: '#7e71c5',
    500: '#3a3bab',
    950: '#000000',
  },
}
SCSS
$custom: #3a3bab;
$custom-light: #7e71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3bab",
  "rgb": {
    "r": 58,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 239.469,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.17424,
    "h": 275.7
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#3A3BAB
secondary
#C1C080
accent
#D84FD9
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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