#3D38D1#3D38D1

#3D38D1 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.0% C 0.224 H 274.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#3D38D1
RGBrgb(61, 56, 209)
HSLhsl(242, 62%, 52%)
HSVhsv(242, 73%, 82%)
CMYKcmyk(70.8%, 73.2%, 0%, 18%)
CIE-LABlab(34.85, 50.09, -77.34)
CIE-LCHlch(34.85, 92.14, 302.93°)
OKLaboklab(45.98% 0.0175 -0.2237)
OKLCHoklch(45.98% 0.224 274.5)
XYZxyz(14.8434, 8.4225, 61.1527)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38D1 #CCD138
analogous
#3880D1 #3D38D1 #8A38D1
triadic
#3D38D1 #D13D38 #38D13D
tetradic
#3D38D1 #D13880 #CCD138 #38D18A
square
#3D38D1 #D13880 #CCD138 #38D18A
split-complementary
#3D38D1 #D18A38 #80D138
monochromatic
#1E1B74 #2A26A6 #3D38D1 #6D6ADC #9E9BE8

Accessibility & contrast

On white

7.82
#3D38D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3D38D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38D1
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38D1#FFFFFF#000000##FFFFFF
##3D38D11.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D5
Deuteranopia (green-blind)
#004BCE
Tritanopia (blue-blind)
#006481
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3d38d1;
/* rgb */ color: rgb(61, 56, 209);
/* oklch */ color: oklch(46.0% 0.224 274.5);
Tailwind
colors: {
  custom: {
    50: '#8871e0',
    500: '#3d38d1',
    950: '#000000',
  },
}
SCSS
$custom: #3d38d1;
$custom-light: #8871e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38d1",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 241.961,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.45975,
    "c": 0.22435,
    "h": 274.5
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#3D38D1
secondary
#D2D491
accent
#E642E0
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3D38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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