#3A2897#3A2897

#3A2897 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.170 H 281.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3A2897
RGBrgb(58, 40, 151)
HSLhsl(250, 58%, 37%)
HSVhsv(250, 74%, 59%)
CMYKcmyk(61.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(25.72, 40.11, -57.85)
CIE-LCHlch(25.72, 70.39, 304.74°)
OKLaboklab(37.71% 0.0351 -0.1667)
OKLCHoklch(37.71% 0.17 281.9)
XYZxyz(8.0879, 4.6509, 29.7437)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2897 #859728
analogous
#284D97 #3A2897 #722897
triadic
#3A2897 #973A28 #28973A
tetradic
#3A2897 #97284D #859728 #289772
square
#3A2897 #97284D #859728 #289772
split-complementary
#3A2897 #977228 #4D9728
monochromatic
#150E36 #271B67 #3A2897 #4D35C7 #7664D6

Accessibility & contrast

On white

10.88
#3A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2897
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2897#FFFFFF#000000##FFFFFF
##3A28971.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2897;
/* rgb */ color: rgb(58, 40, 151);
/* oklch */ color: oklch(37.7% 0.170 281.9);
Tailwind
colors: {
  custom: {
    50: '#7c64b7',
    500: '#3a2897',
    950: '#000000',
  },
}
SCSS
$custom: #3a2897;
$custom-light: #7c64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2897",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 249.73,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3771,
    "c": 0.17039,
    "h": 281.9
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#3A2897
secondary
#ADBC5F
accent
#E146C8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3A2897

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

Preview Lab → · Contrast checker → · Palette generator →

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