#3F398F#3F398F

#3F398F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.138 H 281.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#3F398F
RGBrgb(63, 57, 143)
HSLhsl(244, 43%, 39%)
HSVhsv(244, 60%, 56%)
CMYKcmyk(55.9%, 60.1%, 0%, 43.9%)
CIE-LABlab(29.33, 27.96, -47.01)
CIE-LCHlch(29.33, 54.70, 300.74°)
OKLaboklab(40.22% 0.0272 -0.1348)
OKLCHoklch(40.22% 0.138 281.4)
XYZxyz(8.4694, 5.9657, 26.6865)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F398F #898F39
analogous
#395E8F #3F398F #6A398F
triadic
#3F398F #8F3F39 #398F3F
tetradic
#3F398F #8F395E #898F39 #398F6A
square
#3F398F #8F395E #898F39 #398F6A
split-complementary
#3F398F #8F6A39 #5E8F39
monochromatic
#181637 #2C2863 #3F398F #554DB8 #7E79CA

Accessibility & contrast

On white

9.58
#3F398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3F398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F398F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F398F#FFFFFF#000000##FFFFFF
##3F398F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#1A4D5E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3f398f;
/* rgb */ color: rgb(63, 57, 143);
/* oklch */ color: oklch(40.2% 0.138 281.4);
Tailwind
colors: {
  custom: {
    50: '#7c6fb0',
    500: '#3f398f',
    950: '#000000',
  },
}
SCSS
$custom: #3f398f;
$custom-light: #7c6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f398f",
  "rgb": {
    "r": 63,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 244.186,
    "s": 43,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40219,
    "c": 0.1375,
    "h": 281.4
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#3F398F
secondary
#AEB371
accent
#D355CA
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3F398F

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

Preview Lab → · Contrast checker → · Palette generator →

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