#3A34B2#3A34B2

#3A34B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.191 H 276.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#3A34B2
RGBrgb(58, 52, 178)
HSLhsl(243, 55%, 45%)
HSVhsv(243, 71%, 70%)
CMYKcmyk(67.4%, 70.8%, 0%, 30.2%)
CIE-LABlab(30.80, 41.96, -65.81)
CIE-LCHlch(30.80, 78.05, 302.52°)
OKLaboklab(42.13% 0.0215 -0.1901)
OKLCHoklch(42.13% 0.191 276.4)
XYZxyz(11.0062, 6.5689, 42.7988)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A34B2 #ACB234
analogous
#346DB2 #3A34B2 #7934B2
triadic
#3A34B2 #B23A34 #34B23A
tetradic
#3A34B2 #B2346D #ACB234 #34B279
square
#3A34B2 #B2346D #ACB234 #34B279
split-complementary
#3A34B2 #B27934 #6DB234
monochromatic
#1B1853 #2B2683 #3A34B2 #5B56CE #8985DB

Accessibility & contrast

On white

9.08
#3A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3A34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A34B2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A34B2#FFFFFF#000000##FFFFFF
##3A34B21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a34b2;
/* rgb */ color: rgb(58, 52, 178);
/* oklch */ color: oklch(42.1% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#806dca',
    500: '#3a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a34b2;
$custom-light: #806dca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a34b2",
  "rgb": {
    "r": 58,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 242.857,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42129,
    "c": 0.19128,
    "h": 276.4
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#3A34B2
secondary
#C2C57D
accent
#DE4AD7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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