#3A38C4#3A38C4

#3A38C4 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.5% C 0.209 H 274.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#3A38C4
RGBrgb(58, 56, 196)
HSLhsl(241, 56%, 49%)
HSVhsv(241, 71%, 77%)
CMYKcmyk(70.4%, 71.4%, 0%, 23.1%)
CIE-LABlab(33.38, 45.58, -72.21)
CIE-LCHlch(33.38, 85.39, 302.26°)
OKLaboklab(44.49% 0.0161 -0.2088)
OKLCHoklch(44.49% 0.209 274.4)
XYZxyz(13.1196, 7.7121, 53.0110)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C4 #C2C438
analogous
#387CC4 #3A38C4 #8038C4
triadic
#3A38C4 #C43A38 #38C43A
tetradic
#3A38C4 #C4387C #C2C438 #38C480
square
#3A38C4 #C4387C #C2C438 #38C480
split-complementary
#3A38C4 #C48038 #7CC438
monochromatic
#1E1D65 #2C2A94 #3A38C4 #6766D3 #9796E1

Accessibility & contrast

On white

8.26
#3A38C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3A38C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C4
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C4#FFFFFF#000000##FFFFFF
##3A38C41.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#005F7A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a38c4;
/* rgb */ color: rgb(58, 56, 196);
/* oklch */ color: oklch(44.5% 0.209 274.4);
Tailwind
colors: {
  custom: {
    50: '#8470d7',
    500: '#3a38c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c4;
$custom-light: #8470d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c4",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 240.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.44493,
    "c": 0.20939,
    "h": 274.4
  },
  "luminance": 0.07713
}

Semantic roles & 50–950 ramp

primary
#3A38C4
secondary
#CBCC8C
accent
#DF49DD
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3A38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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