#3F397A#3F397A

#3F397A is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.6% C 0.107 H 284.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#3F397A
RGBrgb(63, 57, 122)
HSLhsl(246, 36%, 35%)
HSVhsv(246, 53%, 48%)
CMYKcmyk(48.4%, 53.3%, 0%, 52.2%)
CIE-LABlab(27.81, 20.98, -36.38)
CIE-LCHlch(27.81, 42.00, 299.98°)
OKLaboklab(38.61% 0.0266 -0.1035)
OKLCHoklch(38.61% 0.107 284.4)
XYZxyz(7.0248, 5.3878, 19.0784)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F397A #747A39
analogous
#39547A #3F397A #5F397A
triadic
#3F397A #7A3F39 #397A3F
tetradic
#3F397A #7A3954 #747A39 #397A5F
square
#3F397A #7A3954 #747A39 #397A5F
split-complementary
#3F397A #7A5F39 #547A39
monochromatic
#141227 #292650 #3F397A #554CA4 #7871BD

Accessibility & contrast

On white

10.11
#3F397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F397A
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F397A#FFFFFF#000000##FFFFFF
##3F397A1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447C
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#2B4754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f397a;
/* rgb */ color: rgb(63, 57, 122);
/* oklch */ color: oklch(38.6% 0.107 284.4);
Tailwind
colors: {
  custom: {
    50: '#786fa1',
    500: '#3f397a',
    950: '#000000',
  },
}
SCSS
$custom: #3f397a;
$custom-light: #786fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f397a",
  "rgb": {
    "r": 63,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 245.538,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38612,
    "c": 0.10686,
    "h": 284.4
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#3F397A
secondary
#A0A669
accent
#CC5BC2
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #3F397A

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

Preview Lab → · Contrast checker → · Palette generator →

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