#3A2F8A#3A2F8A

#3A2F8A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.145 H 282.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3A2F8A
RGBrgb(58, 47, 138)
HSLhsl(247, 49%, 36%)
HSVhsv(247, 66%, 54%)
CMYKcmyk(58%, 65.9%, 0%, 45.9%)
CIE-LABlab(26.06, 31.70, -49.25)
CIE-LCHlch(26.06, 58.57, 302.77°)
OKLaboklab(37.59% 0.031 -0.1415)
OKLCHoklch(37.59% 0.145 282.4)
XYZxyz(7.3475, 4.7671, 24.5728)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F8A #7F8A2F
analogous
#2F528A #3A2F8A #682F8A
triadic
#3A2F8A #8A3A2F #2F8A3A
tetradic
#3A2F8A #8A2F52 #7F8A2F #2F8A68
square
#3A2F8A #8A2F52 #7F8A2F #2F8A68
split-complementary
#3A2F8A #8A682F #528A2F
monochromatic
#14102F #271F5C #3A2F8A #4D3FB8 #7468CC

Accessibility & contrast

On white

10.75
#3A2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F8A
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F8A#FFFFFF#000000##FFFFFF
##3A2F8A1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#114658
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a2f8a;
/* rgb */ color: rgb(58, 47, 138);
/* oklch */ color: oklch(37.6% 0.145 282.4);
Tailwind
colors: {
  custom: {
    50: '#7968ad',
    500: '#3a2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f8a;
$custom-light: #7968ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f8a",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 247.253,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37593,
    "c": 0.14491,
    "h": 282.4
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#3A2F8A
secondary
#A9B362
accent
#D94FC8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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