#3A279F#3A279F

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

Color values

HEX#3A279F
RGBrgb(58, 39, 159)
HSLhsl(250, 61%, 39%)
HSVhsv(250, 75%, 62%)
CMYKcmyk(63.5%, 75.5%, 0%, 37.6%)
CIE-LABlab(26.31, 43.18, -61.76)
CIE-LCHlch(26.31, 75.36, 304.96°)
OKLaboklab(38.37% 0.0339 -0.1782)
OKLCHoklch(38.37% 0.181 280.8)
XYZxyz(8.7265, 4.8531, 33.2711)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A279F #8C9F27
analogous
#27509F #3A279F #76279F
triadic
#3A279F #9F3A27 #279F3A
tetradic
#3A279F #9F2750 #8C9F27 #279F76
square
#3A279F #9F2750 #8C9F27 #279F76
split-complementary
#3A279F #9F7627 #509F27
monochromatic
#160F3D #281B6E #3A279F #4E36CE #7967DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A279F#FFFFFF#000000##FFFFFF
##3A279F1.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)
#0042A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a279f;
/* rgb */ color: rgb(58, 39, 159);
/* oklch */ color: oklch(38.4% 0.181 280.8);
Tailwind
colors: {
  custom: {
    50: '#7d64bd',
    500: '#3a279f',
    950: '#000000',
  },
}
SCSS
$custom: #3a279f;
$custom-light: #7d64bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a279f",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 249.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.18138,
    "h": 280.8
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#3A279F
secondary
#B1C062
accent
#E444CA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A279F

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

Preview Lab → · Contrast checker → · Palette generator →

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