#3A42C0#3A42C0

#3A42C0 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.193 H 273.1°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#3A42C0
RGBrgb(58, 66, 192)
HSLhsl(236, 54%, 49%)
HSVhsv(236, 70%, 75%)
CMYKcmyk(69.8%, 65.6%, 0%, 24.7%)
CIE-LABlab(35.20, 38.25, -66.86)
CIE-LCHlch(35.20, 77.03, 299.78°)
OKLaboklab(45.7% 0.0103 -0.1931)
OKLCHoklch(45.7% 0.193 273.1)
XYZxyz(13.2044, 8.6005, 50.8231)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C0 #C0B83A
analogous
#3A85C0 #3A42C0 #753AC0
triadic
#3A42C0 #C03A42 #42C03A
tetradic
#3A42C0 #C03A85 #C0B83A #3AC075
square
#3A42C0 #C03A85 #C0B83A #3AC075
split-complementary
#3A42C0 #C0753A #85C03A
monochromatic
#1E2262 #2C3291 #3A42C0 #666DD1 #959ADF

Accessibility & contrast

On white

7.72
#3A42C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3A42C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C0
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C0#FFFFFF#000000##FFFFFF
##3A42C01.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a42c0;
/* rgb */ color: rgb(58, 66, 192);
/* oklch */ color: oklch(45.7% 0.193 273.1);
Tailwind
colors: {
  custom: {
    50: '#8277d4',
    500: '#3a42c0',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c0;
$custom-light: #8277d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c0",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 236.418,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.457,
    "c": 0.19341,
    "h": 273.1
  },
  "luminance": 0.08602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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