#3A38BA#3A38BA

#3A38BA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.197 H 275.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3A38BA
RGBrgb(58, 56, 186)
HSLhsl(241, 54%, 47%)
HSVhsv(241, 70%, 73%)
CMYKcmyk(68.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(32.42, 42.27, -67.90)
CIE-LCHlch(32.42, 79.98, 301.90°)
OKLaboklab(43.52% 0.0176 -0.1962)
OKLCHoklch(43.52% 0.197 275.1)
XYZxyz(12.0191, 7.2719, 47.2151)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38BA #B8BA38
analogous
#3877BA #3A38BA #7B38BA
triadic
#3A38BA #BA3A38 #38BA3A
tetradic
#3A38BA #BA3877 #B8BA38 #38BA7B
square
#3A38BA #BA3877 #B8BA38 #38BA7B
split-complementary
#3A38BA #BA7B38 #77BA38
monochromatic
#1D1C5C #2B2A8B #3A38BA #6260CF #908FDD

Accessibility & contrast

On white

8.56
#3A38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38BA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38BA#FFFFFF#000000##FFFFFF
##3A38BA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#0046B8
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a38ba;
/* rgb */ color: rgb(58, 56, 186);
/* oklch */ color: oklch(43.5% 0.197 275.1);
Tailwind
colors: {
  custom: {
    50: '#8270d0',
    500: '#3a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a38ba;
$custom-light: #8270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38ba",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 240.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43517,
    "c": 0.19699,
    "h": 275.1
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#3A38BA
secondary
#C7C886
accent
#DD4BDB
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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