#3D42C2#3D42C2

#3D42C2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.195 H 274.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#3D42C2
RGBrgb(61, 66, 194)
HSLhsl(238, 52%, 50%)
HSVhsv(238, 69%, 76%)
CMYKcmyk(68.6%, 66%, 0%, 23.9%)
CIE-LABlab(35.56, 39.32, -67.44)
CIE-LCHlch(35.56, 78.06, 300.24°)
OKLaboklab(46.06% 0.0136 -0.1947)
OKLCHoklch(46.06% 0.195 274)
XYZxyz(13.6070, 8.7823, 52.0065)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42C2 #C2BD3D
analogous
#3D85C2 #3D42C2 #7A3DC2
triadic
#3D42C2 #C23D42 #42C23D
tetradic
#3D42C2 #C23D85 #C2BD3D #3DC27A
square
#3D42C2 #C23D85 #C2BD3D #3DC27A
split-complementary
#3D42C2 #C27A3D #85C23D
monochromatic
#202265 #2E3293 #3D42C2 #6C6FD1 #9A9DDF

Accessibility & contrast

On white

7.62
#3D42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3D42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42C2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42C2#FFFFFF#000000##FFFFFF
##3D42C21.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3d42c2;
/* rgb */ color: rgb(61, 66, 194);
/* oklch */ color: oklch(46.1% 0.195 274.0);
Tailwind
colors: {
  custom: {
    50: '#8477d6',
    500: '#3d42c2',
    950: '#000000',
  },
}
SCSS
$custom: #3d42c2;
$custom-light: #8477d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42c2",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 237.744,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.46063,
    "c": 0.19522,
    "h": 274
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#3D42C2
secondary
#CBC990
accent
#D64CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3D42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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