#3A3FB6#3A3FB6

#3A3FB6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.3% C 0.184 H 274.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB6
RGBrgb(58, 63, 182)
HSLhsl(238, 52%, 47%)
HSVhsv(238, 68%, 71%)
CMYKcmyk(68.1%, 65.4%, 0%, 28.6%)
CIE-LABlab(33.63, 36.66, -63.55)
CIE-LCHlch(33.63, 73.37, 299.98°)
OKLaboklab(44.28% 0.0133 -0.1834)
OKLCHoklch(44.28% 0.184 274.1)
XYZxyz(11.9631, 7.8309, 45.1280)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB6 #B6B13A
analogous
#3A7DB6 #3A3FB6 #733AB6
triadic
#3A3FB6 #B63A3F #3FB63A
tetradic
#3A3FB6 #B63A7D #B6B13A #3AB673
square
#3A3FB6 #B63A7D #B6B13A #3AB673
split-complementary
#3A3FB6 #B6733A #7DB63A
monochromatic
#1C1F59 #2B2F88 #3A3FB6 #6165CD #8F92DB

Accessibility & contrast

On white

8.18
#3A3FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3A3FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB6
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB6#FFFFFF#000000##FFFFFF
##3A3FB61.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3fb6;
/* rgb */ color: rgb(58, 63, 182);
/* oklch */ color: oklch(44.3% 0.184 274.1);
Tailwind
colors: {
  custom: {
    50: '#8074cd',
    500: '#3a3fb6',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb6;
$custom-light: #8074cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb6",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 237.581,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44282,
    "c": 0.18393,
    "h": 274.1
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

primary
#3A3FB6
secondary
#C6C486
accent
#D54DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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