#3A42CD#3A42CD

#3A42CD is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 46.9% C 0.210 H 272.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#3A42CD
RGBrgb(58, 66, 205)
HSLhsl(237, 60%, 52%)
HSVhsv(237, 72%, 80%)
CMYKcmyk(71.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(36.37, 42.71, -72.52)
CIE-LCHlch(36.37, 84.16, 300.49°)
OKLaboklab(46.91% 0.0091 -0.2097)
OKLCHoklch(46.91% 0.21 272.5)
XYZxyz(14.7089, 9.2023, 58.7468)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42CD #CDC53A
analogous
#3A8CCD #3A42CD #7C3ACD
triadic
#3A42CD #CD3A42 #42CD3A
tetradic
#3A42CD #CD3A8C #CDC53A #3ACD7C
square
#3A42CD #CD3A8C #CDC53A #3ACD7C
split-complementary
#3A42CD #CD7C3A #8CCD3A
monochromatic
#1C2170 #292FA1 #3A42CD #6B71D9 #9CA0E6

Accessibility & contrast

On white

7.39
#3A42CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3A42CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42CD
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42CD#FFFFFF#000000##FFFFFF
##3A42CD1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a42cd;
/* rgb */ color: rgb(58, 66, 205);
/* oklch */ color: oklch(46.9% 0.210 272.5);
Tailwind
colors: {
  custom: {
    50: '#8577dd',
    500: '#3a42cd',
    950: '#000000',
  },
}
SCSS
$custom: #3a42cd;
$custom-light: #8577dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42cd",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 236.735,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.2099,
    "h": 272.5
  },
  "luminance": 0.09204
}

Semantic roles & 50–950 ramp

primary
#3A42CD
secondary
#D2CE91
accent
#DA45E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #3A42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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