#3A38D0#3A38D0

#3A38D0 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.224 H 273.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3A38D0
RGBrgb(58, 56, 208)
HSLhsl(241, 62%, 52%)
HSVhsv(241, 73%, 82%)
CMYKcmyk(72.1%, 73.1%, 0%, 18.4%)
CIE-LABlab(34.56, 49.48, -77.24)
CIE-LCHlch(34.56, 91.73, 302.64°)
OKLaboklab(45.69% 0.0141 -0.2234)
OKLCHoklch(45.69% 0.224 273.6)
XYZxyz(14.5405, 8.2805, 60.4943)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38D0 #CED038
analogous
#3882D0 #3A38D0 #8638D0
triadic
#3A38D0 #D03A38 #38D03A
tetradic
#3A38D0 #D03882 #CED038 #38D086
square
#3A38D0 #D03882 #CED038 #38D086
split-complementary
#3A38D0 #D08638 #82D038
monochromatic
#1C1B73 #2827A4 #3A38D0 #6B6ADC #9C9BE7

Accessibility & contrast

On white

7.91
#3A38D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3A38D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38D0
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38D0#FFFFFF#000000##FFFFFF
##3A38D01.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D4
Deuteranopia (green-blind)
#004ACD
Tritanopia (blue-blind)
#006481
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a38d0;
/* rgb */ color: rgb(58, 56, 208);
/* oklch */ color: oklch(45.7% 0.224 273.6);
Tailwind
colors: {
  custom: {
    50: '#8670e0',
    500: '#3a38d0',
    950: '#000000',
  },
}
SCSS
$custom: #3a38d0;
$custom-light: #8670e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38d0",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 240.789,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.45692,
    "c": 0.22389,
    "h": 273.6
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#3A38D0
secondary
#D2D391
accent
#E543E3
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3A38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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