#3A3FB5#3A3FB5

#3A3FB5 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.183 H 274.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB5
RGBrgb(58, 63, 181)
HSLhsl(238, 51%, 47%)
HSVhsv(238, 68%, 71%)
CMYKcmyk(68%, 65.2%, 0%, 29%)
CIE-LABlab(33.54, 36.32, -63.10)
CIE-LCHlch(33.54, 72.81, 299.92°)
OKLaboklab(44.19% 0.0134 -0.1821)
OKLCHoklch(44.19% 0.183 274.2)
XYZxyz(11.8602, 7.7897, 44.5856)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB5 #B5B03A
analogous
#3A7DB5 #3A3FB5 #733AB5
triadic
#3A3FB5 #B53A3F #3FB53A
tetradic
#3A3FB5 #B53A7D #B5B03A #3AB573
square
#3A3FB5 #B53A7D #B5B03A #3AB573
split-complementary
#3A3FB5 #B5733A #7DB53A
monochromatic
#1C1F58 #2B2F87 #3A3FB5 #6065CC #8E92DB

Accessibility & contrast

On white

8.21
#3A3FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3A3FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB5
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB5#FFFFFF#000000##FFFFFF
##3A3FB51.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3fb5;
/* rgb */ color: rgb(58, 63, 181);
/* oklch */ color: oklch(44.2% 0.183 274.2);
Tailwind
colors: {
  custom: {
    50: '#8074cc',
    500: '#3a3fb5',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb5;
$custom-light: #8074cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb5",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 237.561,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44191,
    "c": 0.18263,
    "h": 274.2
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#3A3FB5
secondary
#C6C385
accent
#D54DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3A3FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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