#3A3AAA#3A3AAA

#3A3AAA is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.174 H 276.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3A3AAA
RGBrgb(58, 58, 170)
HSLhsl(240, 49%, 45%)
HSVhsv(240, 66%, 67%)
CMYKcmyk(65.9%, 65.9%, 0%, 33.3%)
CIE-LABlab(31.41, 35.65, -60.03)
CIE-LCHlch(31.41, 69.82, 300.70°)
OKLaboklab(42.34% 0.0182 -0.1732)
OKLCHoklch(42.34% 0.174 276)
XYZxyz(10.5113, 6.8270, 38.7862)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AAA #AAAA3A
analogous
#3A72AA #3A3AAA #723AAA
triadic
#3A3AAA #AA3A3A #3AAA3A
tetradic
#3A3AAA #AA3A72 #AAAA3A #3AAA72
square
#3A3AAA #AA3A72 #AAAA3A #3AAA72
split-complementary
#3A3AAA #AA723A #72AA3A
monochromatic
#1B1B4F #2A2A7C #3A3AAA #5A5AC7 #8888D6

Accessibility & contrast

On white

8.88
#3A3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3A3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AAA
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AAA#FFFFFF#000000##FFFFFF
##3A3AAA1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a3aaa;
/* rgb */ color: rgb(58, 58, 170);
/* oklch */ color: oklch(42.3% 0.174 276.0);
Tailwind
colors: {
  custom: {
    50: '#7e70c4',
    500: '#3a3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #3a3aaa;
$custom-light: #7e70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3aaa",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.17412,
    "h": 276
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#3A3AAA
secondary
#C1C17F
accent
#D94FD9
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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