#3A2EA8#3A2EA8

#3A2EA8 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.185 H 278.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA8
RGBrgb(58, 46, 168)
HSLhsl(246, 57%, 42%)
HSVhsv(246, 73%, 66%)
CMYKcmyk(65.5%, 72.6%, 0%, 34.1%)
CIE-LABlab(28.59, 42.16, -63.46)
CIE-LCHlch(28.59, 76.19, 303.60°)
OKLaboklab(40.26% 0.0273 -0.1832)
OKLCHoklch(40.26% 0.185 278.5)
XYZxyz(9.7875, 5.6799, 37.6187)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA8 #9CA82E
analogous
#2E5FA8 #3A2EA8 #772EA8
triadic
#3A2EA8 #A83A2E #2EA83A
tetradic
#3A2EA8 #A82E5F #9CA82E #2EA877
square
#3A2EA8 #A82E5F #9CA82E #2EA877
split-complementary
#3A2EA8 #A8772E #5FA82E
monochromatic
#191448 #292178 #3A2EA8 #5447CD #8077DA

Accessibility & contrast

On white

9.83
#3A2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3A2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EA8
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA8#FFFFFF#000000##FFFFFF
##3A2EA81.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2ea8;
/* rgb */ color: rgb(58, 46, 168);
/* oklch */ color: oklch(40.3% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#7f69c3',
    500: '#3a2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea8;
$custom-light: #7f69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea8",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 245.902,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40255,
    "c": 0.18521,
    "h": 278.5
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#3A2EA8
secondary
#BAC270
accent
#E048D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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