#3A34D1#3A34D1

#3A34D1 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.3% C 0.229 H 274.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#3A34D1
RGBrgb(58, 52, 209)
HSLhsl(242, 63%, 51%)
HSVhsv(242, 75%, 82%)
CMYKcmyk(72.2%, 75.1%, 0%, 18%)
CIE-LABlab(33.89, 51.97, -78.92)
CIE-LCHlch(33.89, 94.50, 303.36°)
OKLaboklab(45.25% 0.0158 -0.2283)
OKLCHoklch(45.25% 0.229 274)
XYZxyz(14.4777, 7.9575, 61.0822)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A34D1 #CBD134
analogous
#347CD1 #3A34D1 #8834D1
triadic
#3A34D1 #D13A34 #34D13A
tetradic
#3A34D1 #D1347C #CBD134 #34D188
square
#3A34D1 #D1347C #CBD134 #34D188
split-complementary
#3A34D1 #D18834 #7CD134
monochromatic
#1D1A71 #2A25A3 #3A34D1 #6A66DC #9B98E8

Accessibility & contrast

On white

8.10
#3A34D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3A34D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A34D1
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A34D1#FFFFFF#000000##FFFFFF
##3A34D11.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D6
Deuteranopia (green-blind)
#0048CE
Tritanopia (blue-blind)
#006281
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a34d1;
/* rgb */ color: rgb(58, 52, 209);
/* oklch */ color: oklch(45.3% 0.229 274.0);
Tailwind
colors: {
  custom: {
    50: '#876ee1',
    500: '#3a34d1',
    950: '#000000',
  },
}
SCSS
$custom: #3a34d1;
$custom-light: #876ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a34d1",
  "rgb": {
    "r": 58,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 242.293,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45251,
    "c": 0.22885,
    "h": 274
  },
  "luminance": 0.07959
}

Semantic roles & 50–950 ramp

primary
#3A34D1
secondary
#D0D38E
accent
#E642E0
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0715
muted
#7E7A84

Preview Lab

Preview with #3A34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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