#3A299B#3A299B

#3A299B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.174 H 281.1°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3A299B
RGBrgb(58, 41, 155)
HSLhsl(249, 58%, 38%)
HSVhsv(249, 74%, 61%)
CMYKcmyk(62.6%, 73.5%, 0%, 39.2%)
CIE-LABlab(26.31, 40.82, -59.33)
CIE-LCHlch(26.31, 72.01, 304.53°)
OKLaboklab(38.25% 0.0334 -0.1711)
OKLCHoklch(38.25% 0.174 281.1)
XYZxyz(8.4524, 4.8514, 31.4950)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A299B #8A9B29
analogous
#29519B #3A299B #73299B
triadic
#3A299B #9B3A29 #299B3A
tetradic
#3A299B #9B2951 #8A9B29 #299B73
square
#3A299B #9B2951 #8A9B29 #299B73
split-complementary
#3A299B #9B7329 #519B29
monochromatic
#160F3A #281C6B #3A299B #4D37CA #7867D7

Accessibility & contrast

On white

10.66
#3A299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A299B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A299B#FFFFFF#000000##FFFFFF
##3A299B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a299b;
/* rgb */ color: rgb(58, 41, 155);
/* oklch */ color: oklch(38.2% 0.174 281.1);
Tailwind
colors: {
  custom: {
    50: '#7c65ba',
    500: '#3a299b',
    950: '#000000',
  },
}
SCSS
$custom: #3a299b;
$custom-light: #7c65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a299b",
  "rgb": {
    "r": 58,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 248.947,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38248,
    "c": 0.17432,
    "h": 281.1
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#3A299B
secondary
#B0BD63
accent
#E146CA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A299B

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

Preview Lab → · Contrast checker → · Palette generator →

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