#3F31A7#3F31A7

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

Color values

HEX#3F31A7
RGBrgb(63, 49, 167)
HSLhsl(247, 55%, 42%)
HSVhsv(247, 71%, 65%)
CMYKcmyk(62.3%, 70.7%, 0%, 34.5%)
CIE-LABlab(29.52, 40.79, -61.31)
CIE-LCHlch(29.52, 73.64, 303.63°)
OKLaboklab(40.99% 0.0321 -0.1768)
OKLCHoklch(40.99% 0.18 280.3)
XYZxyz(10.1211, 6.0427, 37.1847)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31A7 #99A731
analogous
#315EA7 #3F31A7 #7A31A7
triadic
#3F31A7 #A73F31 #31A73F
tetradic
#3F31A7 #A7315E #99A731 #31A77A
square
#3F31A7 #A7315E #99A731 #31A77A
split-complementary
#3F31A7 #A77A31 #5EA731
monochromatic
#1B1548 #2D2378 #3F31A7 #5A4BCA #857AD8

Accessibility & contrast

On white

9.51
#3F31A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3F31A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31A7
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31A7#FFFFFF#000000##FFFFFF
##3F31A71.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3f31a7;
/* rgb */ color: rgb(63, 49, 167);
/* oklch */ color: oklch(41.0% 0.180 280.3);
Tailwind
colors: {
  custom: {
    50: '#816bc2',
    500: '#3f31a7',
    950: '#000000',
  },
}
SCSS
$custom: #3f31a7;
$custom-light: #816bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31a7",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 247.119,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40992,
    "c": 0.17967,
    "h": 280.3
  },
  "luminance": 0.06043
}

Semantic roles & 50–950 ramp

primary
#3F31A7
secondary
#B7C173
accent
#DE4ACC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3F31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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