#3A279C#3A279C

#3A279C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.178 H 281.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3A279C
RGBrgb(58, 39, 156)
HSLhsl(250, 60%, 38%)
HSVhsv(250, 75%, 61%)
CMYKcmyk(62.8%, 75%, 0%, 38.8%)
CIE-LABlab(26.01, 42.24, -60.42)
CIE-LCHlch(26.01, 73.73, 304.96°)
OKLaboklab(38.07% 0.0347 -0.1743)
OKLCHoklch(38.07% 0.178 281.2)
XYZxyz(8.4693, 4.7503, 31.9166)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A279C #899C27
analogous
#274E9C #3A279C #74279C
triadic
#3A279C #9C3A27 #279C3A
tetradic
#3A279C #9C274E #899C27 #279C74
square
#3A279C #9C274E #899C27 #279C74
split-complementary
#3A279C #9C7427 #4E9C27
monochromatic
#160F3A #281B6B #3A279C #4D34CC #7865D8

Accessibility & contrast

On white

10.77
#3A279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A279C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A279C#FFFFFF#000000##FFFFFF
##3A279C1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a279c;
/* rgb */ color: rgb(58, 39, 156);
/* oklch */ color: oklch(38.1% 0.178 281.2);
Tailwind
colors: {
  custom: {
    50: '#7d64ba',
    500: '#3a279c',
    950: '#000000',
  },
}
SCSS
$custom: #3a279c;
$custom-light: #7d64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a279c",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 249.744,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38068,
    "c": 0.17769,
    "h": 281.2
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#3A279C
secondary
#AFBE61
accent
#E345C9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A279C

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

Preview Lab → · Contrast checker → · Palette generator →

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