#3A3DAA#3A3DAA

#3A3DAA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.170 H 275.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#3A3DAA
RGBrgb(58, 61, 170)
HSLhsl(238, 49%, 45%)
HSVhsv(238, 66%, 67%)
CMYKcmyk(65.9%, 64.1%, 0%, 33.3%)
CIE-LABlab(32.12, 33.76, -58.87)
CIE-LCHlch(32.12, 67.87, 299.83°)
OKLaboklab(42.86% 0.0158 -0.1698)
OKLCHoklch(42.86% 0.17 275.3)
XYZxyz(10.6670, 7.1384, 38.8381)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3DAA #AAA73A
analogous
#3A75AA #3A3DAA #6F3AAA
triadic
#3A3DAA #AA3A3D #3DAA3A
tetradic
#3A3DAA #AA3A75 #AAA73A #3AAA6F
square
#3A3DAA #AA3A75 #AAA73A #3AAA6F
split-complementary
#3A3DAA #AA6F3A #75AA3A
monochromatic
#1B1C4F #2A2D7C #3A3DAA #5A5DC7 #888AD6

Accessibility & contrast

On white

8.65
#3A3DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3A3DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3DAA
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3DAA#FFFFFF#000000##FFFFFF
##3A3DAA1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3daa;
/* rgb */ color: rgb(58, 61, 170);
/* oklch */ color: oklch(42.9% 0.170 275.3);
Tailwind
colors: {
  custom: {
    50: '#7e73c4',
    500: '#3a3daa',
    950: '#000000',
  },
}
SCSS
$custom: #3a3daa;
$custom-light: #7e73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3daa",
  "rgb": {
    "r": 58,
    "g": 61,
    "b": 170
  },
  "hsl": {
    "h": 238.393,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42861,
    "c": 0.17048,
    "h": 275.3
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

primary
#3A3DAA
secondary
#C1BF7F
accent
#D54FD9
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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