#3A2F87#3A2F87

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

Color values

HEX#3A2F87
RGBrgb(58, 47, 135)
HSLhsl(248, 48%, 36%)
HSVhsv(248, 65%, 53%)
CMYKcmyk(57%, 65.2%, 0%, 47.1%)
CIE-LABlab(25.81, 30.70, -47.79)
CIE-LCHlch(25.81, 56.80, 302.72°)
OKLaboklab(37.33% 0.0313 -0.1373)
OKLCHoklch(37.33% 0.141 282.9)
XYZxyz(7.1333, 4.6814, 23.4447)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F87 #7C872F
analogous
#2F5087 #3A2F87 #662F87
triadic
#3A2F87 #873A2F #2F873A
tetradic
#3A2F87 #872F50 #7C872F #2F8766
square
#3A2F87 #872F50 #7C872F #2F8766
split-complementary
#3A2F87 #87662F #50872F
monochromatic
#130F2C #261F5A #3A2F87 #4E3FB4 #7366CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A2F87#FFFFFF#000000##FFFFFF
##3A2F871.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)
#00408A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#154556
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2f87;
/* rgb */ color: rgb(58, 47, 135);
/* oklch */ color: oklch(37.3% 0.141 282.9);
Tailwind
colors: {
  custom: {
    50: '#7868ab',
    500: '#3a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f87;
$custom-light: #7868ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f87",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 247.5,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.14081,
    "h": 282.9
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#3A2F87
secondary
#A7B161
accent
#D850C7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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