#3A279A#3A279A

#3A279A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.175 H 281.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3A279A
RGBrgb(58, 39, 154)
HSLhsl(250, 60%, 38%)
HSVhsv(250, 75%, 60%)
CMYKcmyk(62.3%, 74.7%, 0%, 39.6%)
CIE-LABlab(25.81, 41.61, -59.53)
CIE-LCHlch(25.81, 72.63, 304.96°)
OKLaboklab(37.87% 0.0351 -0.1717)
OKLCHoklch(37.87% 0.175 281.6)
XYZxyz(8.3013, 4.6831, 31.0321)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A279A #879A27
analogous
#274D9A #3A279A #73279A
triadic
#3A279A #9A3A27 #279A3A
tetradic
#3A279A #9A274D #879A27 #279A73
square
#3A279A #9A274D #879A27 #279A73
split-complementary
#3A279A #9A7327 #4D9A27
monochromatic
#150E38 #281B69 #3A279A #4C33CB #7764D8

Accessibility & contrast

On white

10.84
#3A279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A279A
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A279A#FFFFFF#000000##FFFFFF
##3A279A1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a279a;
/* rgb */ color: rgb(58, 39, 154);
/* oklch */ color: oklch(37.9% 0.175 281.6);
Tailwind
colors: {
  custom: {
    50: '#7c64b9',
    500: '#3a279a',
    950: '#000000',
  },
}
SCSS
$custom: #3a279a;
$custom-light: #7c64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a279a",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 249.913,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37868,
    "c": 0.17522,
    "h": 281.6
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A279A

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

Preview Lab → · Contrast checker → · Palette generator →

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