#3A38C7#3A38C7

#3A38C7 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.8% C 0.213 H 274.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#3A38C7
RGBrgb(58, 56, 199)
HSLhsl(241, 56%, 50%)
HSVhsv(241, 72%, 78%)
CMYKcmyk(70.9%, 71.9%, 0%, 22%)
CIE-LABlab(33.67, 46.56, -73.48)
CIE-LCHlch(33.67, 86.99, 302.36°)
OKLaboklab(44.79% 0.0156 -0.2125)
OKLCHoklch(44.79% 0.213 274.2)
XYZxyz(13.4645, 7.8501, 54.8274)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C7 #C5C738
analogous
#387EC7 #3A38C7 #8138C7
triadic
#3A38C7 #C73A38 #38C73A
tetradic
#3A38C7 #C7387E #C5C738 #38C781
square
#3A38C7 #C7387E #C5C738 #38C781
split-complementary
#3A38C7 #C78138 #7EC738
monochromatic
#1E1D67 #2C2B97 #3A38C7 #6968D4 #9998E2

Accessibility & contrast

On white

8.17
#3A38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3A38C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C7#FFFFFF#000000##FFFFFF
##3A38C71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CB
Deuteranopia (green-blind)
#0048C4
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a38c7;
/* rgb */ color: rgb(58, 56, 199);
/* oklch */ color: oklch(44.8% 0.213 274.2);
Tailwind
colors: {
  custom: {
    50: '#8470d9',
    500: '#3a38c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c7;
$custom-light: #8470d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c7",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 240.839,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.4479,
    "c": 0.21305,
    "h": 274.2
  },
  "luminance": 0.07851
}

Semantic roles & 50–950 ramp

primary
#3A38C7
secondary
#CDCD8D
accent
#DF48DD
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3A38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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