#3A42C2#3A42C2

#3A42C2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.196 H 273.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#3A42C2
RGBrgb(58, 66, 194)
HSLhsl(236, 54%, 49%)
HSVhsv(236, 70%, 76%)
CMYKcmyk(70.1%, 66%, 0%, 23.9%)
CIE-LABlab(35.38, 38.94, -67.74)
CIE-LCHlch(35.38, 78.14, 299.89°)
OKLaboklab(45.88% 0.0102 -0.1957)
OKLCHoklch(45.88% 0.196 273)
XYZxyz(13.4275, 8.6897, 51.9981)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C2 #C2BA3A
analogous
#3A86C2 #3A42C2 #763AC2
triadic
#3A42C2 #C23A42 #42C23A
tetradic
#3A42C2 #C23A86 #C2BA3A #3AC276
square
#3A42C2 #C23A86 #C2BA3A #3AC276
split-complementary
#3A42C2 #C2763A #86C23A
monochromatic
#1E2264 #2C3293 #3A42C2 #676ED2 #979BE0

Accessibility & contrast

On white

7.67
#3A42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3A42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C2#FFFFFF#000000##FFFFFF
##3A42C21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a42c2;
/* rgb */ color: rgb(58, 66, 194);
/* oklch */ color: oklch(45.9% 0.196 273.0);
Tailwind
colors: {
  custom: {
    50: '#8277d6',
    500: '#3a42c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c2;
$custom-light: #8277d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c2",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 236.471,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45883,
    "c": 0.19598,
    "h": 273
  },
  "luminance": 0.08691
}

Semantic roles & 50–950 ramp

primary
#3A42C2
secondary
#CBC88D
accent
#D54ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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