#3A38C6#3A38C6

#3A38C6 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.7% C 0.212 H 274.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3A38C6
RGBrgb(58, 56, 198)
HSLhsl(241, 56%, 50%)
HSVhsv(241, 72%, 78%)
CMYKcmyk(70.7%, 71.7%, 0%, 22.4%)
CIE-LABlab(33.57, 46.23, -73.06)
CIE-LCHlch(33.57, 86.45, 302.33°)
OKLaboklab(44.69% 0.0158 -0.2112)
OKLCHoklch(44.69% 0.212 274.3)
XYZxyz(13.3488, 7.8038, 54.2179)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C6 #C4C638
analogous
#387DC6 #3A38C6 #8138C6
triadic
#3A38C6 #C63A38 #38C63A
tetradic
#3A38C6 #C6387D #C4C638 #38C681
square
#3A38C6 #C6387D #C4C638 #38C681
split-complementary
#3A38C6 #C68138 #7DC638
monochromatic
#1E1D67 #2C2B96 #3A38C6 #6967D4 #9897E2

Accessibility & contrast

On white

8.20
#3A38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3A38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C6
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C6#FFFFFF#000000##FFFFFF
##3A38C61.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#0048C3
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a38c6;
/* rgb */ color: rgb(58, 56, 198);
/* oklch */ color: oklch(44.7% 0.212 274.3);
Tailwind
colors: {
  custom: {
    50: '#8470d9',
    500: '#3a38c6',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c6;
$custom-light: #8470d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c6",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 240.845,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44691,
    "c": 0.21183,
    "h": 274.3
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#3A38C6
secondary
#CCCD8D
accent
#DF49DD
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3A38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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