#3F3F99#3F3F99

#3F3F99 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.143 H 278.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#3F3F99
RGBrgb(63, 63, 153)
HSLhsl(240, 42%, 42%)
HSVhsv(240, 59%, 60%)
CMYKcmyk(58.8%, 58.8%, 0%, 40%)
CIE-LABlab(31.60, 27.47, -49.44)
CIE-LCHlch(31.60, 56.56, 299.05°)
OKLaboklab(42.15% 0.0207 -0.1419)
OKLCHoklch(42.15% 0.143 278.3)
XYZxyz(9.5753, 6.9110, 30.9602)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3F99 #99993F
analogous
#3F6C99 #3F3F99 #6C3F99
triadic
#3F3F99 #993F3F #3F993F
tetradic
#3F3F99 #993F6C #99993F #3F996C
square
#3F3F99 #993F6C #99993F #3F996C
split-complementary
#3F3F99 #996C3F #6C993F
monochromatic
#1B1B42 #2D2D6E #3F3F99 #5A5ABB #8585CD

Accessibility & contrast

On white

8.81
#3F3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3F3F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F3F99
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3F99#FFFFFF#000000##FFFFFF
##3F3F991.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#055465
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3f3f99;
/* rgb */ color: rgb(63, 63, 153);
/* oklch */ color: oklch(42.1% 0.143 278.3);
Tailwind
colors: {
  custom: {
    50: '#7d74b8',
    500: '#3f3f99',
    950: '#000000',
  },
}
SCSS
$custom: #3f3f99;
$custom-light: #7d74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3f99",
  "rgb": {
    "r": 63,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 41.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42145,
    "c": 0.14338,
    "h": 278.3
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#3F3F99
secondary
#B7B77C
accent
#D156D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #3F3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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