#3E38D4#3E38D4

#3E38D4 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.228 H 274.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#3E38D4
RGBrgb(62, 56, 212)
HSLhsl(242, 64%, 53%)
HSVhsv(242, 74%, 83%)
CMYKcmyk(70.8%, 73.6%, 0%, 16.9%)
CIE-LABlab(35.21, 51.14, -78.48)
CIE-LCHlch(35.21, 93.67, 303.09°)
OKLaboklab(46.34% 0.0181 -0.2269)
OKLCHoklch(46.34% 0.228 274.6)
XYZxyz(15.2805, 8.6045, 63.1301)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E38D4 #CED438
analogous
#3880D4 #3E38D4 #8C38D4
triadic
#3E38D4 #D43E38 #38D43E
tetradic
#3E38D4 #D43880 #CED438 #38D48C
square
#3E38D4 #D43880 #CED438 #38D48C
split-complementary
#3E38D4 #D48C38 #80D438
monochromatic
#1D1A78 #2A25AA #3E38D4 #6F6ADF #A09DEA

Accessibility & contrast

On white

7.72
#3E38D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3E38D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E38D4
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E38D4#FFFFFF#000000##FFFFFF
##3E38D41.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#004BD1
Tritanopia (blue-blind)
#006583
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3e38d4;
/* rgb */ color: rgb(62, 56, 212);
/* oklch */ color: oklch(46.3% 0.228 274.6);
Tailwind
colors: {
  custom: {
    50: '#8971e3',
    500: '#3e38d4',
    950: '#000000',
  },
}
SCSS
$custom: #3e38d4;
$custom-light: #8971e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e38d4",
  "rgb": {
    "r": 62,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 242.308,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4634,
    "c": 0.22767,
    "h": 274.6
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#3E38D4
secondary
#D3D692
accent
#E740E1
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3E38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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