#3D42C5#3D42C5

#3D42C5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.199 H 273.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#3D42C5
RGBrgb(61, 66, 197)
HSLhsl(238, 54%, 51%)
HSVhsv(238, 69%, 77%)
CMYKcmyk(69%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.83, 40.34, -68.76)
CIE-LCHlch(35.83, 79.72, 300.40°)
OKLaboklab(46.34% 0.0133 -0.1986)
OKLCHoklch(46.34% 0.199 273.8)
XYZxyz(13.9474, 8.9184, 53.7989)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42C5 #C5C03D
analogous
#3D86C5 #3D42C5 #7C3DC5
triadic
#3D42C5 #C53D42 #42C53D
tetradic
#3D42C5 #C53D86 #C5C03D #3DC57C
square
#3D42C5 #C53D86 #C5C03D #3DC57C
split-complementary
#3D42C5 #C57C3D #86C53D
monochromatic
#1F2268 #2D3198 #3D42C5 #6C70D3 #9B9EE1

Accessibility & contrast

On white

7.54
#3D42C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3D42C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42C5
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42C5#FFFFFF#000000##FFFFFF
##3D42C51.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3d42c5;
/* rgb */ color: rgb(61, 66, 197);
/* oklch */ color: oklch(46.3% 0.199 273.8);
Tailwind
colors: {
  custom: {
    50: '#8477d8',
    500: '#3d42c5',
    950: '#000000',
  },
}
SCSS
$custom: #3d42c5;
$custom-light: #8477d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42c5",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 237.794,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.19905,
    "h": 273.8
  },
  "luminance": 0.0892
}

Semantic roles & 50–950 ramp

primary
#3D42C5
secondary
#CDCB91
accent
#D84ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3D42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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