#3A289B#3A289B

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

Color values

HEX#3A289B
RGBrgb(58, 40, 155)
HSLhsl(249, 59%, 38%)
HSVhsv(249, 74%, 61%)
CMYKcmyk(62.6%, 74.2%, 0%, 39.2%)
CIE-LABlab(26.11, 41.38, -59.65)
CIE-LCHlch(26.11, 72.60, 304.75°)
OKLaboklab(38.11% 0.0342 -0.172)
OKLCHoklch(38.11% 0.175 281.2)
XYZxyz(8.4182, 4.7831, 31.4836)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A289B #899B28
analogous
#28509B #3A289B #73289B
triadic
#3A289B #9B3A28 #289B3A
tetradic
#3A289B #9B2850 #899B28 #289B73
square
#3A289B #9B2850 #899B28 #289B73
split-complementary
#3A289B #9B7328 #509B28
monochromatic
#160F3A #281B6A #3A289B #4D35CB #7866D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A289B#FFFFFF#000000##FFFFFF
##3A289B1.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)
#00429E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a289b;
/* rgb */ color: rgb(58, 40, 155);
/* oklch */ color: oklch(38.1% 0.175 281.2);
Tailwind
colors: {
  custom: {
    50: '#7d64ba',
    500: '#3a289b',
    950: '#000000',
  },
}
SCSS
$custom: #3a289b;
$custom-light: #7d64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a289b",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 249.391,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38107,
    "c": 0.1754,
    "h": 281.2
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#3A289B
secondary
#AFBD61
accent
#E246CA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A289B

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

Preview Lab → · Contrast checker → · Palette generator →

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