#3D38CD#3D38CD

#3D38CD is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.6% C 0.220 H 274.8°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#3D38CD
RGBrgb(61, 56, 205)
HSLhsl(242, 60%, 51%)
HSVhsv(242, 73%, 80%)
CMYKcmyk(70.2%, 72.7%, 0%, 19.6%)
CIE-LABlab(34.45, 48.81, -75.68)
CIE-LCHlch(34.45, 90.05, 302.82°)
OKLaboklab(45.58% 0.0182 -0.2188)
OKLCHoklch(45.58% 0.22 274.8)
XYZxyz(14.3544, 8.2268, 58.5772)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38CD #C8CD38
analogous
#387DCD #3D38CD #8738CD
triadic
#3D38CD #CD3D38 #38CD3D
tetradic
#3D38CD #CD387D #C8CD38 #38CD87
square
#3D38CD #CD387D #C8CD38 #38CD87
split-complementary
#3D38CD #CD8738 #7DCD38
monochromatic
#1F1C6F #2C28A0 #3D38CD #6D69D9 #9C9AE6

Accessibility & contrast

On white

7.94
#3D38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3D38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38CD
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38CD#FFFFFF#000000##FFFFFF
##3D38CD1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D1
Deuteranopia (green-blind)
#004ACA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3d38cd;
/* rgb */ color: rgb(61, 56, 205);
/* oklch */ color: oklch(45.6% 0.220 274.8);
Tailwind
colors: {
  custom: {
    50: '#8770de',
    500: '#3d38cd',
    950: '#000000',
  },
}
SCSS
$custom: #3d38cd;
$custom-light: #8770de;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38cd",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 242.013,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45575,
    "c": 0.21957,
    "h": 274.8
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#3D38CD
secondary
#CFD18F
accent
#E345DE
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3D38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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