#3A2B87#3A2B87

#3A2B87 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.146 H 284.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3A2B87
RGBrgb(58, 43, 135)
HSLhsl(250, 52%, 35%)
HSVhsv(250, 68%, 53%)
CMYKcmyk(57%, 68.1%, 0%, 47.1%)
CIE-LABlab(24.88, 33.19, -49.31)
CIE-LCHlch(24.88, 59.44, 303.95°)
OKLaboklab(36.66% 0.0353 -0.1417)
OKLCHoklch(36.66% 0.146 284)
XYZxyz(6.9806, 4.3762, 23.3938)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B87 #78872B
analogous
#2B4A87 #3A2B87 #682B87
triadic
#3A2B87 #873A2B #2B873A
tetradic
#3A2B87 #872B4A #78872B #2B8768
square
#3A2B87 #872B4A #78872B #2B8768
split-complementary
#3A2B87 #87682B #4A872B
monochromatic
#120D2A #261C59 #3A2B87 #4E3AB5 #7260CC

Accessibility & contrast

On white

11.20
#3A2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B87
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B87#FFFFFF#000000##FFFFFF
##3A2B871.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#164255
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2b87;
/* rgb */ color: rgb(58, 43, 135);
/* oklch */ color: oklch(36.7% 0.146 284.0);
Tailwind
colors: {
  custom: {
    50: '#7965ab',
    500: '#3a2b87',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b87;
$custom-light: #7965ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b87",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 249.783,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36656,
    "c": 0.14607,
    "h": 284
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#3A2B87
secondary
#A4B25B
accent
#DB4DC4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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