#3A3FA7#3A3FA7

#3A3FA7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.164 H 275.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA7
RGBrgb(58, 63, 167)
HSLhsl(237, 48%, 44%)
HSVhsv(237, 65%, 65%)
CMYKcmyk(65.3%, 62.3%, 0%, 34.5%)
CIE-LABlab(32.36, 31.45, -56.69)
CIE-LCHlch(32.36, 64.83, 299.02°)
OKLaboklab(42.96% 0.0143 -0.1633)
OKLCHoklch(42.96% 0.164 275)
XYZxyz(10.4952, 7.2437, 37.3968)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA7 #A7A23A
analogous
#3A76A7 #3A3FA7 #6C3AA7
triadic
#3A3FA7 #A73A3F #3FA73A
tetradic
#3A3FA7 #A73A76 #A7A23A #3AA76C
square
#3A3FA7 #A73A76 #A7A23A #3AA76C
split-complementary
#3A3FA7 #A76C3A #76A73A
monochromatic
#1A1D4C #2A2E7A #3A3FA7 #595EC5 #868AD5

Accessibility & contrast

On white

8.57
#3A3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A3FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA7
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA7#FFFFFF#000000##FFFFFF
##3A3FA71.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3fa7;
/* rgb */ color: rgb(58, 63, 167);
/* oklch */ color: oklch(43.0% 0.164 275.0);
Tailwind
colors: {
  custom: {
    50: '#7d74c2',
    500: '#3a3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa7;
$custom-light: #7d74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa7",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 237.248,
    "s": 48.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42955,
    "c": 0.16395,
    "h": 275
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#3A3FA7
secondary
#BFBC7E
accent
#D250D8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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