#3D42C6#3D42C6

#3D42C6 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.4% C 0.200 H 273.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3D42C6
RGBrgb(61, 66, 198)
HSLhsl(238, 55%, 51%)
HSVhsv(238, 69%, 78%)
CMYKcmyk(69.2%, 66.7%, 0%, 22.4%)
CIE-LABlab(35.92, 40.67, -69.19)
CIE-LCHlch(35.92, 80.26, 300.45°)
OKLaboklab(46.43% 0.0132 -0.1999)
OKLCHoklch(46.43% 0.2 273.8)
XYZxyz(14.0623, 8.9644, 54.4043)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42C6 #C6C13D
analogous
#3D86C6 #3D42C6 #7C3DC6
triadic
#3D42C6 #C63D42 #42C63D
tetradic
#3D42C6 #C63D86 #C6C13D #3DC67C
square
#3D42C6 #C63D86 #C6C13D #3DC67C
split-complementary
#3D42C6 #C67C3D #86C63D
monochromatic
#1F226A #2D3199 #3D42C6 #6C70D4 #9C9EE2

Accessibility & contrast

On white

7.52
#3D42C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3D42C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42C6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42C6#FFFFFF#000000##FFFFFF
##3D42C61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3d42c6;
/* rgb */ color: rgb(61, 66, 198);
/* oklch */ color: oklch(46.4% 0.200 273.8);
Tailwind
colors: {
  custom: {
    50: '#8577d8',
    500: '#3d42c6',
    950: '#000000',
  },
}
SCSS
$custom: #3d42c6;
$custom-light: #8577d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42c6",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 237.81,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46429,
    "c": 0.20032,
    "h": 273.8
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#3D42C6
secondary
#CECC91
accent
#D94ADE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3D42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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