#3A279D#3A279D

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

Color values

HEX#3A279D
RGBrgb(58, 39, 157)
HSLhsl(250, 60%, 38%)
HSVhsv(250, 75%, 62%)
CMYKcmyk(63.1%, 75.2%, 0%, 38.4%)
CIE-LABlab(26.11, 42.56, -60.87)
CIE-LCHlch(26.11, 74.27, 304.96°)
OKLaboklab(38.17% 0.0344 -0.1756)
OKLCHoklch(38.17% 0.179 281.1)
XYZxyz(8.5543, 4.7843, 32.3644)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A279D #8A9D27
analogous
#274F9D #3A279D #75279D
triadic
#3A279D #9D3A27 #279D3A
tetradic
#3A279D #9D274F #8A9D27 #279D75
square
#3A279D #9D274F #8A9D27 #279D75
split-complementary
#3A279D #9D7527 #4F9D27
monochromatic
#160F3B #281B6C #3A279D #4D35CD #7866D9

Accessibility & contrast

On white

10.73
#3A279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3A279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A279D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A279D#FFFFFF#000000##FFFFFF
##3A279D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a279d;
/* rgb */ color: rgb(58, 39, 157);
/* oklch */ color: oklch(38.2% 0.179 281.1);
Tailwind
colors: {
  custom: {
    50: '#7d64bb',
    500: '#3a279d',
    950: '#000000',
  },
}
SCSS
$custom: #3a279d;
$custom-light: #7d64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a279d",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 249.661,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.17892,
    "h": 281.1
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#3A279D
secondary
#B0BF61
accent
#E344CA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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