#3D42D5#3D42D5

#3D42D5 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.8% C 0.219 H 273.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#3D42D5
RGBrgb(61, 66, 213)
HSLhsl(238, 64%, 54%)
HSVhsv(238, 71%, 84%)
CMYKcmyk(71.4%, 69%, 0%, 16.5%)
CIE-LABlab(37.28, 45.71, -75.64)
CIE-LCHlch(37.28, 88.38, 301.15°)
OKLaboklab(47.83% 0.0115 -0.2187)
OKLCHoklch(47.83% 0.219 273)
XYZxyz(15.8789, 9.6910, 63.9716)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42D5 #D5D03D
analogous
#3D8ED5 #3D42D5 #843DD5
triadic
#3D42D5 #D53D42 #42D53D
tetradic
#3D42D5 #D53D8E #D5D03D #3DD584
square
#3D42D5 #D53D8E #D5D03D #3DD584
split-complementary
#3D42D5 #D5843D #8ED53D
monochromatic
#1B1E7D #262AAF #3D42D5 #6F73E0 #A2A4EB

Accessibility & contrast

On white

7.15
#3D42D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3D42D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42D5
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42D5#FFFFFF#000000##FFFFFF
##3D42D51.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3d42d5;
/* rgb */ color: rgb(61, 66, 213);
/* oklch */ color: oklch(47.8% 0.219 273.0);
Tailwind
colors: {
  custom: {
    50: '#8877e3',
    500: '#3d42d5',
    950: '#000000',
  },
}
SCSS
$custom: #3d42d5;
$custom-light: #8877e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42d5",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 238.026,
    "s": 64.407,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47833,
    "c": 0.21905,
    "h": 273
  },
  "luminance": 0.09693
}

Semantic roles & 50–950 ramp

primary
#3D42D5
secondary
#D7D596
accent
#E240E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3D42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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