#3F397B#3F397B

#3F397B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.7% C 0.108 H 284.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#3F397B
RGBrgb(63, 57, 123)
HSLhsl(245, 37%, 35%)
HSVhsv(245, 54%, 48%)
CMYKcmyk(48.8%, 53.7%, 0%, 51.8%)
CIE-LABlab(27.88, 21.31, -36.90)
CIE-LCHlch(27.88, 42.61, 300.01°)
OKLaboklab(38.68% 0.0267 -0.105)
OKLCHoklch(38.68% 0.108 284.2)
XYZxyz(7.0871, 5.4127, 19.4064)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F397B #757B39
analogous
#39547B #3F397B #60397B
triadic
#3F397B #7B3F39 #397B3F
tetradic
#3F397B #7B3954 #757B39 #397B60
square
#3F397B #7B3954 #757B39 #397B60
split-complementary
#3F397B #7B6039 #547B39
monochromatic
#141227 #2A2651 #3F397B #544CA5 #7871BD

Accessibility & contrast

On white

10.08
#3F397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3F397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F397B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F397B#FFFFFF#000000##FFFFFF
##3F397B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#17407A
Tritanopia (blue-blind)
#2B4754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f397b;
/* rgb */ color: rgb(63, 57, 123);
/* oklch */ color: oklch(38.7% 0.108 284.2);
Tailwind
colors: {
  custom: {
    50: '#786fa2',
    500: '#3f397b',
    950: '#000000',
  },
}
SCSS
$custom: #3f397b;
$custom-light: #786fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f397b",
  "rgb": {
    "r": 63,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 245.455,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38684,
    "c": 0.10836,
    "h": 284.2
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#3F397B
secondary
#A1A669
accent
#CD5BC2
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #3F397B

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

Preview Lab → · Contrast checker → · Palette generator →

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