#3A42C1#3A42C1

#3A42C1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.195 H 273.0°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#3A42C1
RGBrgb(58, 66, 193)
HSLhsl(236, 54%, 49%)
HSVhsv(236, 70%, 76%)
CMYKcmyk(69.9%, 65.8%, 0%, 24.3%)
CIE-LABlab(35.29, 38.60, -67.30)
CIE-LCHlch(35.29, 77.59, 299.84°)
OKLaboklab(45.79% 0.0103 -0.1944)
OKLCHoklch(45.79% 0.195 273)
XYZxyz(13.3156, 8.6449, 51.4086)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C1 #C1B93A
analogous
#3A86C1 #3A42C1 #753AC1
triadic
#3A42C1 #C13A42 #42C13A
tetradic
#3A42C1 #C13A86 #C1B93A #3AC175
square
#3A42C1 #C13A86 #C1B93A #3AC175
split-complementary
#3A42C1 #C1753A #86C13A
monochromatic
#1E2263 #2C3292 #3A42C1 #676DD1 #969ADF

Accessibility & contrast

On white

7.69
#3A42C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3A42C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C1
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C1#FFFFFF#000000##FFFFFF
##3A42C11.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a42c1;
/* rgb */ color: rgb(58, 66, 193);
/* oklch */ color: oklch(45.8% 0.195 273.0);
Tailwind
colors: {
  custom: {
    50: '#8277d5',
    500: '#3a42c1',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c1;
$custom-light: #8277d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c1",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 236.444,
    "s": 53.785,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45791,
    "c": 0.1947,
    "h": 273
  },
  "luminance": 0.08646
}

Semantic roles & 50–950 ramp

primary
#3A42C1
secondary
#CBC78C
accent
#D44BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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