#3A2F94#3A2F94

#3A2F94 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.158 H 280.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#3A2F94
RGBrgb(58, 47, 148)
HSLhsl(247, 52%, 38%)
HSVhsv(247, 68%, 58%)
CMYKcmyk(60.8%, 68.2%, 0%, 42%)
CIE-LABlab(26.93, 35.02, -54.01)
CIE-LCHlch(26.93, 64.37, 302.96°)
OKLaboklab(38.5% 0.0298 -0.1555)
OKLCHoklch(38.5% 0.158 280.9)
XYZxyz(8.1051, 5.0701, 28.5628)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F94 #89942F
analogous
#2F5694 #3A2F94 #6C2F94
triadic
#3A2F94 #943A2F #2F943A
tetradic
#3A2F94 #942F56 #89942F #2F946C
square
#3A2F94 #942F56 #89942F #2F946C
split-complementary
#3A2F94 #946C2F #56942F
monochromatic
#161137 #282066 #3A2F94 #4D3EC2 #786DD1

Accessibility & contrast

On white

10.43
#3A2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3A2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F94
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F94#FFFFFF#000000##FFFFFF
##3A2F941.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2f94;
/* rgb */ color: rgb(58, 47, 148);
/* oklch */ color: oklch(38.5% 0.158 280.9);
Tailwind
colors: {
  custom: {
    50: '#7b68b4',
    500: '#3a2f94',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f94;
$custom-light: #7b68b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f94",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 246.535,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.15835,
    "h": 280.9
  },
  "luminance": 0.05071
}

Semantic roles & 50–950 ramp

primary
#3A2F94
secondary
#AFB867
accent
#DB4DCC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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