#3F34A2#3F34A2

#3F34A2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.170 H 280.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#3F34A2
RGBrgb(63, 52, 162)
HSLhsl(246, 51%, 42%)
HSVhsv(246, 68%, 64%)
CMYKcmyk(61.1%, 67.9%, 0%, 36.5%)
CIE-LABlab(29.71, 37.39, -57.98)
CIE-LCHlch(29.71, 68.99, 302.82°)
OKLaboklab(40.99% 0.0305 -0.167)
OKLCHoklch(40.99% 0.17 280.3)
XYZxyz(9.7974, 6.1207, 34.8405)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F34A2 #97A234
analogous
#3460A2 #3F34A2 #7634A2
triadic
#3F34A2 #A23F34 #34A23F
tetradic
#3F34A2 #A23460 #97A234 #34A276
square
#3F34A2 #A23460 #97A234 #34A276
split-complementary
#3F34A2 #A27634 #60A234
monochromatic
#1B1645 #2D2574 #3F34A2 #594DC6 #857CD5

Accessibility & contrast

On white

9.44
#3F34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3F34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F34A2
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F34A2#FFFFFF#000000##FFFFFF
##3F34A21.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3f34a2;
/* rgb */ color: rgb(63, 52, 162);
/* oklch */ color: oklch(41.0% 0.170 280.3);
Tailwind
colors: {
  custom: {
    50: '#7f6cbe',
    500: '#3f34a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f34a2;
$custom-light: #7f6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3f34a2",
  "rgb": {
    "r": 63,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 246,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40993,
    "c": 0.16975,
    "h": 280.3
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#3F34A2
secondary
#B6BE74
accent
#DB4DCD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3F34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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