#3D42CA#3D42CA

#3D42CA is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 46.8% C 0.205 H 273.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#3D42CA
RGBrgb(61, 66, 202)
HSLhsl(238, 57%, 52%)
HSVhsv(238, 70%, 79%)
CMYKcmyk(69.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(36.27, 42.03, -70.93)
CIE-LCHlch(36.27, 82.45, 300.65°)
OKLaboklab(46.8% 0.0127 -0.205)
OKLCHoklch(46.8% 0.205 273.6)
XYZxyz(14.5298, 9.1514, 56.8663)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42CA #CAC53D
analogous
#3D89CA #3D42CA #7F3DCA
triadic
#3D42CA #CA3D42 #42CA3D
tetradic
#3D42CA #CA3D89 #CAC53D #3DCA7F
square
#3D42CA #CA3D89 #CAC53D #3DCA7F
split-complementary
#3D42CA #CA7F3D #89CA3D
monochromatic
#1E216E #2B2F9F #3D42CA #6D71D7 #9DA0E4

Accessibility & contrast

On white

7.42
#3D42CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3D42CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D42CA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42CA#FFFFFF#000000##FFFFFF
##3D42CA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3d42ca;
/* rgb */ color: rgb(61, 66, 202);
/* oklch */ color: oklch(46.8% 0.205 273.6);
Tailwind
colors: {
  custom: {
    50: '#8577db',
    500: '#3d42ca',
    950: '#000000',
  },
}
SCSS
$custom: #3d42ca;
$custom-light: #8577db;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42ca",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 237.872,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.20539,
    "h": 273.6
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#3D42CA
secondary
#D0CE92
accent
#DB47E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #3D42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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