#3A3FB1#3A3FB1

#3A3FB1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.177 H 274.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB1
RGBrgb(58, 63, 177)
HSLhsl(237, 51%, 46%)
HSVhsv(237, 67%, 69%)
CMYKcmyk(67.2%, 64.4%, 0%, 30.6%)
CIE-LABlab(33.20, 34.93, -61.29)
CIE-LCHlch(33.20, 70.55, 299.68°)
OKLaboklab(43.83% 0.0137 -0.1768)
OKLCHoklch(43.83% 0.177 274.4)
XYZxyz(11.4556, 7.6279, 42.4551)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB1 #B1AC3A
analogous
#3A7AB1 #3A3FB1 #703AB1
triadic
#3A3FB1 #B13A3F #3FB13A
tetradic
#3A3FB1 #B13A7A #B1AC3A #3AB170
square
#3A3FB1 #B13A7A #B1AC3A #3AB170
split-complementary
#3A3FB1 #B1703A #7AB13A
monochromatic
#1C1E55 #2B2F83 #3A3FB1 #5E63CA #8C8FD9

Accessibility & contrast

On white

8.31
#3A3FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3A3FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB1#FFFFFF#000000##FFFFFF
##3A3FB11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a3fb1;
/* rgb */ color: rgb(58, 63, 177);
/* oklch */ color: oklch(43.8% 0.177 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f74c9',
    500: '#3a3fb1',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb1;
$custom-light: #7f74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb1",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 237.479,
    "s": 50.638,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43833,
    "c": 0.17736,
    "h": 274.4
  },
  "luminance": 0.07629
}

Semantic roles & 50–950 ramp

primary
#3A3FB1
secondary
#C4C183
accent
#D44EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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