#3A3A9E#3A3A9E

#3A3A9E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.158 H 276.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#3A3A9E
RGBrgb(58, 58, 158)
HSLhsl(240, 46%, 42%)
HSVhsv(240, 63%, 62%)
CMYKcmyk(63.3%, 63.3%, 0%, 38%)
CIE-LABlab(30.38, 31.52, -54.48)
CIE-LCHlch(30.38, 62.94, 300.05°)
OKLaboklab(41.28% 0.0191 -0.1569)
OKLCHoklch(41.28% 0.158 276.9)
XYZxyz(9.4275, 6.3935, 33.0784)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3A9E #9E9E3A
analogous
#3A6C9E #3A3A9E #6C3A9E
triadic
#3A3A9E #9E3A3A #3A9E3A
tetradic
#3A3A9E #9E3A6C #9E9E3A #3A9E6C
square
#3A3A9E #9E3A6C #9E9E3A #3A9E6C
split-complementary
#3A3A9E #9E6C3A #6C9E3A
monochromatic
#191944 #2A2A71 #3A3A9E #5555C0 #8181D1

Accessibility & contrast

On white

9.22
#3A3A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3A3A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3A9E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3A9E#FFFFFF#000000##FFFFFF
##3A3A9E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a3a9e;
/* rgb */ color: rgb(58, 58, 158);
/* oklch */ color: oklch(41.3% 0.158 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c70bb',
    500: '#3a3a9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a3a9e;
$custom-light: #7c70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3a9e",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 46.296,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41275,
    "c": 0.15802,
    "h": 276.9
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#3A3A9E
secondary
#BBBB79
accent
#D652D6
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3A3A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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