#3A3FB3#3A3FB3

#3A3FB3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.180 H 274.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB3
RGBrgb(58, 63, 179)
HSLhsl(238, 51%, 46%)
HSVhsv(238, 68%, 70%)
CMYKcmyk(67.6%, 64.8%, 0%, 29.8%)
CIE-LABlab(33.37, 35.62, -62.20)
CIE-LCHlch(33.37, 71.68, 299.80°)
OKLaboklab(44.01% 0.0135 -0.1795)
OKLCHoklch(44.01% 0.18 274.3)
XYZxyz(11.6564, 7.7082, 43.5126)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB3 #B3AE3A
analogous
#3A7CB3 #3A3FB3 #723AB3
triadic
#3A3FB3 #B33A3F #3FB33A
tetradic
#3A3FB3 #B33A7C #B3AE3A #3AB372
square
#3A3FB3 #B33A7C #B3AE3A #3AB372
split-complementary
#3A3FB3 #B3723A #7CB33A
monochromatic
#1C1E57 #2B2F85 #3A3FB3 #5F64CB #8D90DA

Accessibility & contrast

On white

8.26
#3A3FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3A3FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB3
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB3#FFFFFF#000000##FFFFFF
##3A3FB31.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a3fb3;
/* rgb */ color: rgb(58, 63, 179);
/* oklch */ color: oklch(44.0% 0.180 274.3);
Tailwind
colors: {
  custom: {
    50: '#8074cb',
    500: '#3a3fb3',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb3;
$custom-light: #8074cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb3",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 237.521,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44011,
    "c": 0.18,
    "h": 274.3
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#3A3FB3
secondary
#C5C284
accent
#D54DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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