#3D38D9#3D38D9

#3D38D9 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.8% C 0.234 H 273.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3D38D9
RGBrgb(61, 56, 217)
HSLhsl(242, 68%, 54%)
HSVhsv(242, 74%, 85%)
CMYKcmyk(71.9%, 74.2%, 0%, 14.9%)
CIE-LABlab(35.65, 52.62, -80.63)
CIE-LCHlch(35.65, 96.29, 303.13°)
OKLaboklab(46.79% 0.016 -0.2332)
OKLCHoklch(46.79% 0.234 273.9)
XYZxyz(15.8589, 8.8286, 66.5005)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38D9 #D4D938
analogous
#3883D9 #3D38D9 #8D38D9
triadic
#3D38D9 #D93D38 #38D93D
tetradic
#3D38D9 #D93883 #D4D938 #38D98D
square
#3D38D9 #D93883 #D4D938 #38D98D
split-complementary
#3D38D9 #D98D38 #83D938
monochromatic
#1B187E #2622B2 #3D38D9 #6F6BE3 #A19FED

Accessibility & contrast

On white

7.59
#3D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3D38D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38D9
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38D9#FFFFFF#000000##FFFFFF
##3D38D91.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDE
Deuteranopia (green-blind)
#004CD6
Tritanopia (blue-blind)
#006786
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3d38d9;
/* rgb */ color: rgb(61, 56, 217);
/* oklch */ color: oklch(46.8% 0.234 273.9);
Tailwind
colors: {
  custom: {
    50: '#8971e6',
    500: '#3d38d9',
    950: '#000000',
  },
}
SCSS
$custom: #3d38d9;
$custom-light: #8971e6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38d9",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 241.863,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.46785,
    "c": 0.2338,
    "h": 273.9
  },
  "luminance": 0.0883
}

Semantic roles & 50–950 ramp

primary
#3D38D9
secondary
#D7D994
accent
#EB3DE5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3D38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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