#3A3DA2#3A3DA2

#3A3DA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.160 H 275.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#3A3DA2
RGBrgb(58, 61, 162)
HSLhsl(238, 47%, 43%)
HSVhsv(238, 64%, 64%)
CMYKcmyk(64.2%, 62.3%, 0%, 36.5%)
CIE-LABlab(31.45, 30.99, -55.16)
CIE-LCHlch(31.45, 63.26, 299.33°)
OKLaboklab(42.16% 0.0162 -0.1588)
OKLCHoklch(42.16% 0.16 275.8)
XYZxyz(9.9331, 6.8448, 34.9731)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3DA2 #A29F3A
analogous
#3A71A2 #3A3DA2 #6B3AA2
triadic
#3A3DA2 #A23A3D #3DA23A
tetradic
#3A3DA2 #A23A71 #A29F3A #3AA26B
square
#3A3DA2 #A23A71 #A29F3A #3AA26B
split-complementary
#3A3DA2 #A26B3A #71A23A
monochromatic
#1A1B48 #2A2C75 #3A3DA2 #575AC3 #8486D3

Accessibility & contrast

On white

8.86
#3A3DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3DA2
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3DA2#FFFFFF#000000##FFFFFF
##3A3DA21.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a3da2;
/* rgb */ color: rgb(58, 61, 162);
/* oklch */ color: oklch(42.2% 0.160 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c72be',
    500: '#3a3da2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3da2;
$custom-light: #7c72be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3da2",
  "rgb": {
    "r": 58,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 238.269,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42162,
    "c": 0.15967,
    "h": 275.8
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#3A3DA2
secondary
#BDBB7B
accent
#D351D7
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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