#3D42C7#3D42C7

#3D42C7 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.202 H 273.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#3D42C7
RGBrgb(61, 66, 199)
HSLhsl(238, 55%, 51%)
HSVhsv(238, 69%, 78%)
CMYKcmyk(69.3%, 66.8%, 0%, 22%)
CIE-LABlab(36.00, 41.01, -69.63)
CIE-LCHlch(36.00, 80.81, 300.50°)
OKLaboklab(46.52% 0.0131 -0.2012)
OKLCHoklch(46.52% 0.202 273.7)
XYZxyz(14.1780, 9.0107, 55.0138)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42C7 #C7C23D
analogous
#3D87C7 #3D42C7 #7D3DC7
triadic
#3D42C7 #C73D42 #42C73D
tetradic
#3D42C7 #C73D87 #C7C23D #3DC77D
square
#3D42C7 #C73D87 #C7C23D #3DC77D
split-complementary
#3D42C7 #C77D3D #87C73D
monochromatic
#1F226B #2D319A #3D42C7 #6C70D5 #9C9FE2

Accessibility & contrast

On white

7.49
#3D42C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3D42C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42C7
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42C7#FFFFFF#000000##FFFFFF
##3D42C71.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3d42c7;
/* rgb */ color: rgb(61, 66, 199);
/* oklch */ color: oklch(46.5% 0.202 273.7);
Tailwind
colors: {
  custom: {
    50: '#8577d9',
    500: '#3d42c7',
    950: '#000000',
  },
}
SCSS
$custom: #3d42c7;
$custom-light: #8577d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42c7",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 237.826,
    "s": 55.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.20159,
    "h": 273.7
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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