#3A3FA1#3A3FA1

#3A3FA1 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.156 H 275.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA1
RGBrgb(58, 63, 161)
HSLhsl(237, 47%, 43%)
HSVhsv(237, 64%, 63%)
CMYKcmyk(64%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.87, 29.35, -53.87)
CIE-LCHlch(31.87, 61.35, 298.58°)
OKLaboklab(42.44% 0.0145 -0.155)
OKLCHoklch(42.44% 0.156 275.3)
XYZxyz(9.9533, 7.0269, 34.5431)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA1 #A19C3A
analogous
#3A73A1 #3A3FA1 #683AA1
triadic
#3A3FA1 #A13A3F #3FA13A
tetradic
#3A3FA1 #A13A73 #A19C3A #3AA168
square
#3A3FA1 #A13A73 #A19C3A #3AA168
split-complementary
#3A3FA1 #A1683A #73A13A
monochromatic
#1A1C47 #2A2D74 #3A3FA1 #565BC2 #8387D2

Accessibility & contrast

On white

8.73
#3A3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3A3FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA1
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA1#FFFFFF#000000##FFFFFF
##3A3FA11.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a3fa1;
/* rgb */ color: rgb(58, 63, 161);
/* oklch */ color: oklch(42.4% 0.156 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c74be',
    500: '#3a3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa1;
$custom-light: #7c74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa1",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 237.087,
    "s": 47.032,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42444,
    "c": 0.15572,
    "h": 275.3
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#3A3FA1
secondary
#BCB97B
accent
#D051D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3A3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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