#3A2A8B#3A2A8B

#3A2A8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.153 H 283.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#3A2A8B
RGBrgb(58, 42, 139)
HSLhsl(250, 54%, 35%)
HSVhsv(250, 70%, 55%)
CMYKcmyk(58.3%, 69.8%, 0%, 45.5%)
CIE-LABlab(25.01, 35.10, -51.58)
CIE-LCHlch(25.01, 62.39, 304.23°)
OKLaboklab(36.86% 0.0357 -0.1484)
OKLCHoklch(36.86% 0.153 283.5)
XYZxyz(7.2317, 4.4191, 24.8930)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A8B #7B8B2A
analogous
#2A4A8B #3A2A8B #6A2A8B
triadic
#3A2A8B #8B3A2A #2A8B3A
tetradic
#3A2A8B #8B2A4A #7B8B2A #2A8B6A
square
#3A2A8B #8B2A4A #7B8B2A #2A8B6A
split-complementary
#3A2A8B #8B6A2A #4A8B2A
monochromatic
#130E2D #261C5C #3A2A8B #4E38BA #7360CF

Accessibility & contrast

On white

11.15
#3A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2A8B
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A8B#FFFFFF#000000##FFFFFF
##3A2A8B1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#104357
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2a8b;
/* rgb */ color: rgb(58, 42, 139);
/* oklch */ color: oklch(36.9% 0.153 283.5);
Tailwind
colors: {
  custom: {
    50: '#7965ae',
    500: '#3a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a8b;
$custom-light: #7965ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a8b",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 249.897,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36862,
    "c": 0.15263,
    "h": 283.5
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#3A2A8B
secondary
#A6B55C
accent
#DD4BC5
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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