#3D42D2#3D42D2

#3D42D2 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.215 H 273.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#3D42D2
RGBrgb(61, 66, 210)
HSLhsl(238, 62%, 53%)
HSVhsv(238, 71%, 82%)
CMYKcmyk(71%, 68.6%, 0%, 17.6%)
CIE-LABlab(37.00, 44.71, -74.37)
CIE-LCHlch(37.00, 86.78, 301.02°)
OKLaboklab(47.55% 0.0118 -0.215)
OKLCHoklch(47.55% 0.215 273.1)
XYZxyz(15.5016, 9.5401, 61.9848)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42D2 #D2CD3D
analogous
#3D8CD2 #3D42D2 #833DD2
triadic
#3D42D2 #D23D42 #42D23D
tetradic
#3D42D2 #D23D8C #D2CD3D #3DD283
square
#3D42D2 #D23D8C #D2CD3D #3DD283
split-complementary
#3D42D2 #D2833D #8CD23D
monochromatic
#1C1F79 #282CAA #3D42D2 #6F72DE #A0A3E9

Accessibility & contrast

On white

7.22
#3D42D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3D42D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42D2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42D2#FFFFFF#000000##FFFFFF
##3D42D21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3d42d2;
/* rgb */ color: rgb(61, 66, 210);
/* oklch */ color: oklch(47.5% 0.215 273.1);
Tailwind
colors: {
  custom: {
    50: '#8777e1',
    500: '#3d42d2',
    950: '#000000',
  },
}
SCSS
$custom: #3d42d2;
$custom-light: #8777e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42d2",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 237.987,
    "s": 62.343,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47548,
    "c": 0.21535,
    "h": 273.1
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#3D42D2
secondary
#D6D395
accent
#E042E5
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #3D42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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