#3A42D2#3A42D2

#3A42D2 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.216 H 272.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#3A42D2
RGBrgb(58, 66, 210)
HSLhsl(237, 63%, 53%)
HSVhsv(237, 72%, 82%)
CMYKcmyk(72.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(36.83, 44.40, -74.66)
CIE-LCHlch(36.83, 86.86, 300.74°)
OKLaboklab(47.38% 0.0085 -0.2159)
OKLCHoklch(47.38% 0.216 272.3)
XYZxyz(15.3221, 9.4476, 61.9763)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42D2 #D2CA3A
analogous
#3A8ED2 #3A42D2 #7E3AD2
triadic
#3A42D2 #D23A42 #42D23A
tetradic
#3A42D2 #D23A8E #D2CA3A #3AD27E
square
#3A42D2 #D23A8E #D2CA3A #3AD27E
split-complementary
#3A42D2 #D27E3A #8ED23A
monochromatic
#1B2077 #262DA8 #3A42D2 #6C72DD #9EA2E9

Accessibility & contrast

On white

7.27
#3A42D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3A42D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42D2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42D2#FFFFFF#000000##FFFFFF
##3A42D21.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#004FCF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3a42d2;
/* rgb */ color: rgb(58, 66, 210);
/* oklch */ color: oklch(47.4% 0.216 272.3);
Tailwind
colors: {
  custom: {
    50: '#8677e1',
    500: '#3a42d2',
    950: '#000000',
  },
}
SCSS
$custom: #3a42d2;
$custom-light: #8677e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42d2",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 236.842,
    "s": 62.81,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47378,
    "c": 0.21611,
    "h": 272.3
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#3A42D2
secondary
#D5D193
accent
#DD42E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #3A42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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