#3A38AC#3A38AC

#3A38AC is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.179 H 276.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3A38AC
RGBrgb(58, 56, 172)
HSLhsl(241, 51%, 45%)
HSVhsv(241, 67%, 67%)
CMYKcmyk(66.3%, 67.4%, 0%, 32.5%)
CIE-LABlab(31.13, 37.56, -61.70)
CIE-LCHlch(31.13, 72.23, 301.33°)
OKLaboklab(42.19% 0.0195 -0.178)
OKLCHoklch(42.19% 0.179 276.2)
XYZxyz(10.6031, 6.7055, 39.7573)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38AC #AAAC38
analogous
#3870AC #3A38AC #7438AC
triadic
#3A38AC #AC3A38 #38AC3A
tetradic
#3A38AC #AC3870 #AAAC38 #38AC74
square
#3A38AC #AC3870 #AAAC38 #38AC74
split-complementary
#3A38AC #AC7438 #70AC38
monochromatic
#1B1A50 #2A297E #3A38AC #5A58C9 #8887D8

Accessibility & contrast

On white

8.97
#3A38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3A38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38AC
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38AC#FFFFFF#000000##FFFFFF
##3A38AC1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.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: #3a38ac;
/* rgb */ color: rgb(58, 56, 172);
/* oklch */ color: oklch(42.2% 0.179 276.2);
Tailwind
colors: {
  custom: {
    50: '#7f6fc6',
    500: '#3a38ac',
    950: '#000000',
  },
}
SCSS
$custom: #3a38ac;
$custom-light: #7f6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38ac",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 241.034,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42192,
    "c": 0.1791,
    "h": 276.2
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#3A38AC
secondary
#C1C27E
accent
#DA4DD8
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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