#3F38D4#3F38D4

#3F38D4 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.4% C 0.227 H 274.9°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#3F38D4
RGBrgb(63, 56, 212)
HSLhsl(243, 64%, 53%)
HSVhsv(243, 74%, 83%)
CMYKcmyk(70.3%, 73.6%, 0%, 16.9%)
CIE-LABlab(35.28, 51.23, -78.37)
CIE-LCHlch(35.28, 93.63, 303.17°)
OKLaboklab(46.4% 0.0193 -0.2266)
OKLCHoklch(46.4% 0.227 274.9)
XYZxyz(15.3438, 8.6371, 63.1331)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F38D4 #CDD438
analogous
#387FD4 #3F38D4 #8D38D4
triadic
#3F38D4 #D43F38 #38D43F
tetradic
#3F38D4 #D4387F #CDD438 #38D48D
square
#3F38D4 #D4387F #CDD438 #38D48D
split-complementary
#3F38D4 #D48D38 #7FD438
monochromatic
#1E1A78 #2B25AA #3F38D4 #706ADF #A09DEA

Accessibility & contrast

On white

7.70
#3F38D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3F38D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F38D4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F38D4#FFFFFF#000000##FFFFFF
##3F38D41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f38d4;
/* rgb */ color: rgb(63, 56, 212);
/* oklch */ color: oklch(46.4% 0.227 274.9);
Tailwind
colors: {
  custom: {
    50: '#8971e3',
    500: '#3f38d4',
    950: '#000000',
  },
}
SCSS
$custom: #3f38d4;
$custom-light: #8971e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f38d4",
  "rgb": {
    "r": 63,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 242.692,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46403,
    "c": 0.22743,
    "h": 274.9
  },
  "luminance": 0.08639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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