#3A3FA3#3A3FA3

#3A3FA3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.158 H 275.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA3
RGBrgb(58, 63, 163)
HSLhsl(237, 48%, 43%)
HSVhsv(237, 64%, 64%)
CMYKcmyk(64.4%, 61.3%, 0%, 36.1%)
CIE-LABlab(32.03, 30.05, -54.82)
CIE-LCHlch(32.03, 62.51, 298.73°)
OKLaboklab(42.61% 0.0144 -0.1578)
OKLCHoklch(42.61% 0.158 275.2)
XYZxyz(10.1311, 7.0981, 35.4794)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA3 #A39E3A
analogous
#3A73A3 #3A3FA3 #693AA3
triadic
#3A3FA3 #A33A3F #3FA33A
tetradic
#3A3FA3 #A33A73 #A39E3A #3AA369
square
#3A3FA3 #A33A73 #A39E3A #3AA369
split-complementary
#3A3FA3 #A3693A #73A33A
monochromatic
#1A1C49 #2A2E76 #3A3FA3 #575CC3 #8488D3

Accessibility & contrast

On white

8.68
#3A3FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3A3FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA3
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA3#FFFFFF#000000##FFFFFF
##3A3FA31.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a3fa3;
/* rgb */ color: rgb(58, 63, 163);
/* oklch */ color: oklch(42.6% 0.158 275.2);
Tailwind
colors: {
  custom: {
    50: '#7c74bf',
    500: '#3a3fa3',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa3;
$custom-light: #7c74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa3",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 237.143,
    "s": 47.511,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.15849,
    "h": 275.2
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#3A3FA3
secondary
#BDBA7C
accent
#D151D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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