#3A38D2#3A38D2

#3A38D2 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.9% C 0.226 H 273.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3A38D2
RGBrgb(58, 56, 210)
HSLhsl(241, 63%, 52%)
HSVhsv(241, 73%, 82%)
CMYKcmyk(72.4%, 73.3%, 0%, 17.6%)
CIE-LABlab(34.76, 50.13, -78.07)
CIE-LCHlch(34.76, 92.78, 302.70°)
OKLaboklab(45.9% 0.0137 -0.2259)
OKLCHoklch(45.9% 0.226 273.5)
XYZxyz(14.7881, 8.3795, 61.7983)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38D2 #D0D238
analogous
#3883D2 #3A38D2 #8738D2
triadic
#3A38D2 #D23A38 #38D23A
tetradic
#3A38D2 #D23883 #D0D238 #38D287
square
#3A38D2 #D23883 #D0D238 #38D287
split-complementary
#3A38D2 #D28738 #83D238
monochromatic
#1C1A75 #2726A7 #3A38D2 #6B6ADD #9D9CE9

Accessibility & contrast

On white

7.85
#3A38D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3A38D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38D2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38D2#FFFFFF#000000##FFFFFF
##3A38D21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D6
Deuteranopia (green-blind)
#004ACF
Tritanopia (blue-blind)
#006482
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a38d2;
/* rgb */ color: rgb(58, 56, 210);
/* oklch */ color: oklch(45.9% 0.226 273.5);
Tailwind
colors: {
  custom: {
    50: '#8771e1',
    500: '#3a38d2',
    950: '#000000',
  },
}
SCSS
$custom: #3a38d2;
$custom-light: #8771e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38d2",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 240.779,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.45895,
    "c": 0.22628,
    "h": 273.5
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#3A38D2
secondary
#D4D591
accent
#E642E4
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3A38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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