#3A2C8E#3A2C8E

#3A2C8E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.154 H 282.5°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3A2C8E
RGBrgb(58, 44, 142)
HSLhsl(249, 53%, 36%)
HSVhsv(249, 69%, 56%)
CMYKcmyk(59.2%, 69%, 0%, 44.3%)
CIE-LABlab(25.72, 34.87, -52.28)
CIE-LCHlch(25.72, 62.84, 303.70°)
OKLaboklab(37.46% 0.0334 -0.1505)
OKLCHoklch(37.46% 0.154 282.5)
XYZxyz(7.5266, 4.6534, 26.0875)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C8E #808E2C
analogous
#2C4F8E #3A2C8E #6B2C8E
triadic
#3A2C8E #8E3A2C #2C8E3A
tetradic
#3A2C8E #8E2C4F #808E2C #2C8E6B
square
#3A2C8E #8E2C4F #808E2C #2C8E6B
split-complementary
#3A2C8E #8E6B2C #4F8E2C
monochromatic
#140F31 #271E5F #3A2C8E #4D3ABD #7465CF

Accessibility & contrast

On white

10.88
#3A2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3A2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2C8E
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C8E#FFFFFF#000000##FFFFFF
##3A2C8E1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#094559
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2c8e;
/* rgb */ color: rgb(58, 44, 142);
/* oklch */ color: oklch(37.5% 0.154 282.5);
Tailwind
colors: {
  custom: {
    50: '#7a66b0',
    500: '#3a2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c8e;
$custom-light: #7a66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c8e",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 248.571,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37458,
    "c": 0.15412,
    "h": 282.5
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#3A2C8E
secondary
#A9B660
accent
#DC4CC7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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