#3A2E87#3A2E87

#3A2E87 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.142 H 283.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3A2E87
RGBrgb(58, 46, 135)
HSLhsl(248, 49%, 35%)
HSVhsv(248, 66%, 53%)
CMYKcmyk(57%, 65.9%, 0%, 47.1%)
CIE-LABlab(25.57, 31.33, -48.18)
CIE-LCHlch(25.57, 57.47, 303.04°)
OKLaboklab(37.16% 0.0323 -0.1384)
OKLCHoklch(37.16% 0.142 283.2)
XYZxyz(7.0938, 4.6024, 23.4315)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2E87 #7B872E
analogous
#2E4E87 #3A2E87 #662E87
triadic
#3A2E87 #873A2E #2E873A
tetradic
#3A2E87 #872E4E #7B872E #2E8766
square
#3A2E87 #872E4E #7B872E #2E8766
split-complementary
#3A2E87 #87662E #4E872E
monochromatic
#130F2C #261E59 #3A2E87 #4E3EB5 #7365CA

Accessibility & contrast

On white

10.93
#3A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2E87
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2E87#FFFFFF#000000##FFFFFF
##3A2E871.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#154456
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2e87;
/* rgb */ color: rgb(58, 46, 135);
/* oklch */ color: oklch(37.2% 0.142 283.2);
Tailwind
colors: {
  custom: {
    50: '#7867ab',
    500: '#3a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #3a2e87;
$custom-light: #7867ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2e87",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 248.09,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.14214,
    "h": 283.2
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#3A2E87
secondary
#A6B160
accent
#D94FC6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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