#3A2DA8#3A2DA8

#3A2DA8 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.186 H 278.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#3A2DA8
RGBrgb(58, 45, 168)
HSLhsl(246, 58%, 42%)
HSVhsv(246, 73%, 66%)
CMYKcmyk(65.5%, 73.2%, 0%, 34.1%)
CIE-LABlab(28.39, 42.73, -63.79)
CIE-LCHlch(28.39, 76.78, 303.81°)
OKLaboklab(40.11% 0.0279 -0.1842)
OKLCHoklch(40.11% 0.186 278.6)
XYZxyz(9.7489, 5.6027, 37.6059)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2DA8 #9BA82D
analogous
#2D5EA8 #3A2DA8 #772DA8
triadic
#3A2DA8 #A83A2D #2DA83A
tetradic
#3A2DA8 #A82D5E #9BA82D #2DA877
square
#3A2DA8 #A82D5E #9BA82D #2DA877
split-complementary
#3A2DA8 #A8772D #5EA82D
monochromatic
#191347 #292078 #3A2DA8 #5345CD #8075DA

Accessibility & contrast

On white

9.90
#3A2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2DA8
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2DA8#FFFFFF#000000##FFFFFF
##3A2DA81.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2da8;
/* rgb */ color: rgb(58, 45, 168);
/* oklch */ color: oklch(40.1% 0.186 278.6);
Tailwind
colors: {
  custom: {
    50: '#7f68c3',
    500: '#3a2da8',
    950: '#000000',
  },
}
SCSS
$custom: #3a2da8;
$custom-light: #7f68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2da8",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 246.341,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.18627,
    "h": 278.6
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#3A2DA8
secondary
#B9C26F
accent
#E147D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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