#3A38C8#3A38C8

#3A38C8 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.9% C 0.214 H 274.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#3A38C8
RGBrgb(58, 56, 200)
HSLhsl(241, 57%, 50%)
HSVhsv(241, 72%, 78%)
CMYKcmyk(71%, 72%, 0%, 21.6%)
CIE-LABlab(33.77, 46.89, -73.90)
CIE-LCHlch(33.77, 87.52, 302.39°)
OKLaboklab(44.89% 0.0154 -0.2137)
OKLCHoklch(44.89% 0.214 274.1)
XYZxyz(13.5810, 7.8967, 55.4409)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C8 #C6C838
analogous
#387EC8 #3A38C8 #8238C8
triadic
#3A38C8 #C83A38 #38C83A
tetradic
#3A38C8 #C8387E #C6C838 #38C882
square
#3A38C8 #C8387E #C6C838 #38C882
split-complementary
#3A38C8 #C88238 #7EC838
monochromatic
#1E1D69 #2C2A99 #3A38C8 #6968D5 #9998E3

Accessibility & contrast

On white

8.14
#3A38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3A38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C8#FFFFFF#000000##FFFFFF
##3A38C81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#0049C5
Tritanopia (blue-blind)
#00617C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a38c8;
/* rgb */ color: rgb(58, 56, 200);
/* oklch */ color: oklch(44.9% 0.214 274.1);
Tailwind
colors: {
  custom: {
    50: '#8570da',
    500: '#3a38c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c8;
$custom-light: #8570da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c8",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 240.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.44889,
    "c": 0.21427,
    "h": 274.1
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#3A38C8
secondary
#CDCE8E
accent
#E048DE
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3A38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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