#3A42A2#3A42A2

#3A42A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.153 H 274.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#3A42A2
RGBrgb(58, 66, 162)
HSLhsl(235, 47%, 43%)
HSVhsv(235, 64%, 64%)
CMYKcmyk(64.2%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.71, 27.75, -53.11)
CIE-LCHlch(32.71, 59.92, 297.59°)
OKLaboklab(43.09% 0.0117 -0.1528)
OKLCHoklch(43.09% 0.153 274.4)
XYZxyz(10.2126, 7.4037, 35.0663)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42A2 #A29A3A
analogous
#3A76A2 #3A42A2 #663AA2
triadic
#3A42A2 #A23A42 #42A23A
tetradic
#3A42A2 #A23A76 #A29A3A #3AA266
square
#3A42A2 #A23A76 #A29A3A #3AA266
split-complementary
#3A42A2 #A2663A #76A23A
monochromatic
#1A1D48 #2A3075 #3A42A2 #575FC3 #848AD3

Accessibility & contrast

On white

8.46
#3A42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3A42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42A2
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42A2#FFFFFF#000000##FFFFFF
##3A42A21.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a42a2;
/* rgb */ color: rgb(58, 66, 162);
/* oklch */ color: oklch(43.1% 0.153 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c76be',
    500: '#3a42a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a42a2;
$custom-light: #7c76be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42a2",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 235.385,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.15323,
    "h": 274.4
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#3A42A2
secondary
#BDB87B
accent
#CD51D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3A42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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