#3A3FB4#3A3FB4

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

Color values

HEX#3A3FB4
RGBrgb(58, 63, 180)
HSLhsl(238, 51%, 47%)
HSVhsv(238, 68%, 71%)
CMYKcmyk(67.8%, 65%, 0%, 29.4%)
CIE-LABlab(33.45, 35.97, -62.65)
CIE-LCHlch(33.45, 72.24, 299.86°)
OKLaboklab(44.1% 0.0135 -0.1808)
OKLCHoklch(44.1% 0.181 274.3)
XYZxyz(11.7579, 7.7488, 44.0472)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB4 #B4AF3A
analogous
#3A7CB4 #3A3FB4 #723AB4
triadic
#3A3FB4 #B43A3F #3FB43A
tetradic
#3A3FB4 #B43A7C #B4AF3A #3AB472
square
#3A3FB4 #B43A7C #B4AF3A #3AB472
split-complementary
#3A3FB4 #B4723A #7CB43A
monochromatic
#1C1F57 #2B2F86 #3A3FB4 #6064CC #8E91DB

Accessibility & contrast

On white

8.24
#3A3FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3A3FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB4#FFFFFF#000000##FFFFFF
##3A3FB41.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3fb4;
/* rgb */ color: rgb(58, 63, 180);
/* oklch */ color: oklch(44.1% 0.181 274.3);
Tailwind
colors: {
  custom: {
    50: '#8074cb',
    500: '#3a3fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb4;
$custom-light: #8074cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb4",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 237.541,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44101,
    "c": 0.18132,
    "h": 274.3
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A3FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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