#3A38C5#3A38C5

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

Color values

HEX#3A38C5
RGBrgb(58, 56, 197)
HSLhsl(241, 56%, 50%)
HSVhsv(241, 72%, 77%)
CMYKcmyk(70.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(33.47, 45.90, -72.63)
CIE-LCHlch(33.47, 85.92, 302.29°)
OKLaboklab(44.59% 0.0159 -0.21)
OKLCHoklch(44.59% 0.211 274.3)
XYZxyz(13.2338, 7.7578, 53.6125)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C5 #C3C538
analogous
#387DC5 #3A38C5 #8138C5
triadic
#3A38C5 #C53A38 #38C53A
tetradic
#3A38C5 #C5387D #C3C538 #38C581
square
#3A38C5 #C5387D #C3C538 #38C581
split-complementary
#3A38C5 #C58138 #7DC538
monochromatic
#1E1D66 #2C2A95 #3A38C5 #6867D4 #9796E1

Accessibility & contrast

On white

8.23
#3A38C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3A38C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C5
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C5#FFFFFF#000000##FFFFFF
##3A38C51.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a38c5;
/* rgb */ color: rgb(58, 56, 197);
/* oklch */ color: oklch(44.6% 0.211 274.3);
Tailwind
colors: {
  custom: {
    50: '#8470d8',
    500: '#3a38c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c5;
$custom-light: #8470d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c5",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 240.851,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44592,
    "c": 0.21061,
    "h": 274.3
  },
  "luminance": 0.07759
}

Semantic roles & 50–950 ramp

primary
#3A38C5
secondary
#CCCD8C
accent
#DF49DD
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3A38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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