#3F3FA5#3F3FA5

#3F3FA5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.160 H 277.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3F3FA5
RGBrgb(63, 63, 165)
HSLhsl(240, 45%, 45%)
HSVhsv(240, 62%, 65%)
CMYKcmyk(61.8%, 61.8%, 0%, 35.3%)
CIE-LABlab(32.54, 31.57, -55.17)
CIE-LCHlch(32.54, 63.56, 299.78°)
OKLaboklab(43.13% 0.0204 -0.1587)
OKLCHoklch(43.13% 0.16 277.3)
XYZxyz(10.6167, 7.3276, 36.4449)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3FA5 #A5A53F
analogous
#3F72A5 #3F3FA5 #723FA5
triadic
#3F3FA5 #A53F3F #3FA53F
tetradic
#3F3FA5 #A53F72 #A5A53F #3FA572
square
#3F3FA5 #A53F72 #A5A53F #3FA572
split-complementary
#3F3FA5 #A5723F #72A53F
monochromatic
#1D1D4C #2E2E79 #3F3FA5 #5F5FC2 #8C8CD3

Accessibility & contrast

On white

8.52
#3F3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3F3FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F3FA5
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3FA5#FFFFFF#000000##FFFFFF
##3F3FA51.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3f3fa5;
/* rgb */ color: rgb(63, 63, 165);
/* oklch */ color: oklch(43.1% 0.160 277.3);
Tailwind
colors: {
  custom: {
    50: '#7f74c0',
    500: '#3f3fa5',
    950: '#000000',
  },
}
SCSS
$custom: #3f3fa5;
$custom-light: #7f74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3fa5",
  "rgb": {
    "r": 63,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43132,
    "c": 0.16004,
    "h": 277.3
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#3F3FA5
secondary
#BEBE82
accent
#D453D4
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3F3FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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