#3A3FB2#3A3FB2

#3A3FB2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.179 H 274.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB2
RGBrgb(58, 63, 178)
HSLhsl(238, 51%, 46%)
HSVhsv(238, 67%, 70%)
CMYKcmyk(67.4%, 64.6%, 0%, 30.2%)
CIE-LABlab(33.28, 35.28, -61.75)
CIE-LCHlch(33.28, 71.11, 299.74°)
OKLaboklab(43.92% 0.0136 -0.1782)
OKLCHoklch(43.92% 0.179 274.4)
XYZxyz(11.5556, 7.6679, 42.9819)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB2 #B2AD3A
analogous
#3A7BB2 #3A3FB2 #713AB2
triadic
#3A3FB2 #B23A3F #3FB23A
tetradic
#3A3FB2 #B23A7B #B2AD3A #3AB271
square
#3A3FB2 #B23A7B #B2AD3A #3AB271
split-complementary
#3A3FB2 #B2713A #7BB23A
monochromatic
#1C1E56 #2B2F84 #3A3FB2 #5F63CB #8D90DA

Accessibility & contrast

On white

8.29
#3A3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3FB2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB2#FFFFFF#000000##FFFFFF
##3A3FB21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a3fb2;
/* rgb */ color: rgb(58, 63, 178);
/* oklch */ color: oklch(43.9% 0.179 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f74ca',
    500: '#3a3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb2;
$custom-light: #7f74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb2",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 237.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43922,
    "c": 0.17868,
    "h": 274.4
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#3A3FB2
secondary
#C4C283
accent
#D44DDA
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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