#3F398D#3F398D

#3F398D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.135 H 281.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#3F398D
RGBrgb(63, 57, 141)
HSLhsl(244, 42%, 39%)
HSVhsv(244, 60%, 55%)
CMYKcmyk(55.3%, 59.6%, 0%, 44.7%)
CIE-LABlab(29.17, 27.29, -46.03)
CIE-LCHlch(29.17, 53.51, 300.66°)
OKLaboklab(40.06% 0.0272 -0.1319)
OKLCHoklch(40.06% 0.135 281.6)
XYZxyz(8.3193, 5.9056, 25.8957)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F398D #878D39
analogous
#395D8D #3F398D #69398D
triadic
#3F398D #8D3F39 #398D3F
tetradic
#3F398D #8D395D #878D39 #398D69
square
#3F398D #8D395D #878D39 #398D69
split-complementary
#3F398D #8D6939 #5D8D39
monochromatic
#181636 #2C2761 #3F398D #544CB7 #7E78C8

Accessibility & contrast

On white

9.63
#3F398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3F398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F398D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F398D#FFFFFF#000000##FFFFFF
##3F398D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#1C4D5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3f398d;
/* rgb */ color: rgb(63, 57, 141);
/* oklch */ color: oklch(40.1% 0.135 281.6);
Tailwind
colors: {
  custom: {
    50: '#7b6faf',
    500: '#3f398d',
    950: '#000000',
  },
}
SCSS
$custom: #3f398d;
$custom-light: #7b6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f398d",
  "rgb": {
    "r": 63,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 244.286,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.13466,
    "h": 281.6
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#3F398D
secondary
#ADB270
accent
#D256C9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3F398D

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

Preview Lab → · Contrast checker → · Palette generator →

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