#3A3FAC#3A3FAC

#3A3FAC is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.171 H 274.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#3A3FAC
RGBrgb(58, 63, 172)
HSLhsl(237, 50%, 45%)
HSVhsv(237, 66%, 67%)
CMYKcmyk(66.3%, 63.4%, 0%, 32.5%)
CIE-LABlab(32.77, 33.19, -59.01)
CIE-LCHlch(32.77, 67.70, 299.36°)
OKLaboklab(43.39% 0.014 -0.1701)
OKLCHoklch(43.39% 0.171 274.7)
XYZxyz(10.9664, 7.4322, 39.8784)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FAC #ACA73A
analogous
#3A78AC #3A3FAC #6E3AAC
triadic
#3A3FAC #AC3A3F #3FAC3A
tetradic
#3A3FAC #AC3A78 #ACA73A #3AAC6E
square
#3A3FAC #AC3A78 #ACA73A #3AAC6E
split-complementary
#3A3FAC #AC6E3A #78AC3A
monochromatic
#1B1D50 #2B2E7E #3A3FAC #5B60C8 #898DD7

Accessibility & contrast

On white

8.45
#3A3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3A3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FAC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FAC#FFFFFF#000000##FFFFFF
##3A3FAC1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a3fac;
/* rgb */ color: rgb(58, 63, 172);
/* oklch */ color: oklch(43.4% 0.171 274.7);
Tailwind
colors: {
  custom: {
    50: '#7e74c6',
    500: '#3a3fac',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fac;
$custom-light: #7e74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fac",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 237.368,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4339,
    "c": 0.17071,
    "h": 274.7
  },
  "luminance": 0.07433
}

Semantic roles & 50–950 ramp

primary
#3A3FAC
secondary
#C2BF80
accent
#D34FD9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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