#3A34D5#3A34D5

#3A34D5 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.7% C 0.234 H 273.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#3A34D5
RGBrgb(58, 52, 213)
HSLhsl(242, 66%, 52%)
HSVhsv(242, 76%, 84%)
CMYKcmyk(72.8%, 75.6%, 0%, 16.5%)
CIE-LABlab(34.31, 53.22, -80.55)
CIE-LCHlch(34.31, 96.55, 303.45°)
OKLaboklab(45.67% 0.015 -0.233)
OKLCHoklch(45.67% 0.234 273.7)
XYZxyz(14.9792, 8.1581, 63.7231)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A34D5 #CFD534
analogous
#347FD5 #3A34D5 #8B34D5
triadic
#3A34D5 #D53A34 #34D53A
tetradic
#3A34D5 #D5347F #CFD534 #34D58B
square
#3A34D5 #D5347F #CFD534 #34D58B
split-complementary
#3A34D5 #D58B34 #7FD534
monochromatic
#1C1876 #2823A9 #3A34D5 #6B67DF #9C99EA

Accessibility & contrast

On white

7.98
#3A34D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A34D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A34D5
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A34D5#FFFFFF#000000##FFFFFF
##3A34D51.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058DA
Deuteranopia (green-blind)
#0049D2
Tritanopia (blue-blind)
#006483
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a34d5;
/* rgb */ color: rgb(58, 52, 213);
/* oklch */ color: oklch(45.7% 0.234 273.7);
Tailwind
colors: {
  custom: {
    50: '#886ee3',
    500: '#3a34d5',
    950: '#000000',
  },
}
SCSS
$custom: #3a34d5;
$custom-light: #886ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a34d5",
  "rgb": {
    "r": 58,
    "g": 52,
    "b": 213
  },
  "hsl": {
    "h": 242.236,
    "s": 65.714,
    "l": 51.961
  },
  "oklch": {
    "l": 0.45667,
    "c": 0.23352,
    "h": 273.7
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#3A34D5
secondary
#D3D68F
accent
#E93FE2
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #3A34D5

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

Preview Lab → · Contrast checker → · Palette generator →

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