#3938AC#3938AC

#3938AC is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.179 H 275.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3938AC
RGBrgb(57, 56, 172)
HSLhsl(241, 51%, 45%)
HSVhsv(241, 67%, 67%)
CMYKcmyk(66.9%, 67.4%, 0%, 32.5%)
CIE-LABlab(31.06, 37.43, -61.81)
CIE-LCHlch(31.06, 72.26, 301.19°)
OKLaboklab(42.12% 0.0182 -0.1784)
OKLCHoklch(42.12% 0.179 275.8)
XYZxyz(10.5455, 6.6758, 39.7546)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3938AC #ABAC38
analogous
#3871AC #3938AC #7338AC
triadic
#3938AC #AC3938 #38AC39
tetradic
#3938AC #AC3871 #ABAC38 #38AC73
square
#3938AC #AC3871 #ABAC38 #38AC73
split-complementary
#3938AC #AC7338 #71AC38
monochromatic
#1A1A50 #2A297E #3938AC #5958C9 #8787D8

Accessibility & contrast

On white

8.99
#3938AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3938AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3938AC
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3938AC#FFFFFF#000000##FFFFFF
##3938AC1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3938ac;
/* rgb */ color: rgb(57, 56, 172);
/* oklch */ color: oklch(42.1% 0.179 275.8);
Tailwind
colors: {
  custom: {
    50: '#7e6fc6',
    500: '#3938ac',
    950: '#000000',
  },
}
SCSS
$custom: #3938ac;
$custom-light: #7e6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3938ac",
  "rgb": {
    "r": 57,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 240.517,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.17934,
    "h": 275.8
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#3938AC
secondary
#C1C27E
accent
#DA4DD9
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3938AC

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

Preview Lab → · Contrast checker → · Palette generator →

#3938AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva