#3D42D4#3D42D4

#3D42D4 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.218 H 273.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#3D42D4
RGBrgb(61, 66, 212)
HSLhsl(238, 64%, 54%)
HSVhsv(238, 71%, 83%)
CMYKcmyk(71.2%, 68.9%, 0%, 16.9%)
CIE-LABlab(37.19, 45.38, -75.22)
CIE-LCHlch(37.19, 87.85, 301.10°)
OKLaboklab(47.74% 0.0116 -0.2175)
OKLCHoklch(47.74% 0.218 273)
XYZxyz(15.7524, 9.6404, 63.3052)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42D4 #D4CF3D
analogous
#3D8DD4 #3D42D4 #833DD4
triadic
#3D42D4 #D43D42 #42D43D
tetradic
#3D42D4 #D43D8D #D4CF3D #3DD483
square
#3D42D4 #D43D8D #D4CF3D #3DD483
split-complementary
#3D42D4 #D4833D #8DD43D
monochromatic
#1B1F7B #262BAD #3D42D4 #6F73DF #A1A4EA

Accessibility & contrast

On white

7.17
#3D42D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3D42D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42D4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42D4#FFFFFF#000000##FFFFFF
##3D42D41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0050D1
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3d42d4;
/* rgb */ color: rgb(61, 66, 212);
/* oklch */ color: oklch(47.7% 0.218 273.0);
Tailwind
colors: {
  custom: {
    50: '#8877e2',
    500: '#3d42d4',
    950: '#000000',
  },
}
SCSS
$custom: #3d42d4;
$custom-light: #8877e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42d4",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 238.013,
    "s": 63.713,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47738,
    "c": 0.21782,
    "h": 273
  },
  "luminance": 0.09642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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