#3A42A3#3A42A3

#3A42A3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.155 H 274.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3A42A3
RGBrgb(58, 66, 163)
HSLhsl(235, 48%, 43%)
HSVhsv(235, 64%, 64%)
CMYKcmyk(64.4%, 59.5%, 0%, 36.1%)
CIE-LABlab(32.79, 28.11, -53.58)
CIE-LCHlch(32.79, 60.51, 297.68°)
OKLaboklab(43.17% 0.0117 -0.1542)
OKLCHoklch(43.17% 0.155 274.3)
XYZxyz(10.3018, 7.4394, 35.5363)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42A3 #A39B3A
analogous
#3A76A3 #3A42A3 #673AA3
triadic
#3A42A3 #A33A42 #42A33A
tetradic
#3A42A3 #A33A76 #A39B3A #3AA367
square
#3A42A3 #A33A76 #A39B3A #3AA367
split-complementary
#3A42A3 #A3673A #76A33A
monochromatic
#1A1D49 #2A3076 #3A42A3 #575FC3 #848AD3

Accessibility & contrast

On white

8.44
#3A42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3A42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42A3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42A3#FFFFFF#000000##FFFFFF
##3A42A31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a42a3;
/* rgb */ color: rgb(58, 66, 163);
/* oklch */ color: oklch(43.2% 0.155 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c76bf',
    500: '#3a42a3',
    950: '#000000',
  },
}
SCSS
$custom: #3a42a3;
$custom-light: #7c76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42a3",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 235.429,
    "s": 47.511,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43174,
    "c": 0.15462,
    "h": 274.3
  },
  "luminance": 0.0744
}

Semantic roles & 50–950 ramp

primary
#3A42A3
secondary
#BDB87C
accent
#CD51D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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