#3F397E#3F397E

#3F397E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.9% C 0.113 H 283.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#3F397E
RGBrgb(63, 57, 126)
HSLhsl(245, 38%, 36%)
HSVhsv(245, 55%, 49%)
CMYKcmyk(50%, 54.8%, 0%, 50.6%)
CIE-LABlab(28.08, 22.30, -38.45)
CIE-LCHlch(28.08, 44.45, 300.11°)
OKLaboklab(38.9% 0.0269 -0.1096)
OKLCHoklch(38.9% 0.113 283.8)
XYZxyz(7.2778, 5.4890, 20.4106)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F397E #787E39
analogous
#39557E #3F397E #61397E
triadic
#3F397E #7E3F39 #397E3F
tetradic
#3F397E #7E3955 #787E39 #397E61
square
#3F397E #7E3955 #787E39 #397E61
split-complementary
#3F397E #7E6139 #557E39
monochromatic
#15132A #2A2654 #3F397E #544CA8 #7972BF

Accessibility & contrast

On white

10.01
#3F397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3F397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F397E
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F397E#FFFFFF#000000##FFFFFF
##3F397E1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#294855
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f397e;
/* rgb */ color: rgb(63, 57, 126);
/* oklch */ color: oklch(38.9% 0.113 283.8);
Tailwind
colors: {
  custom: {
    50: '#796fa4',
    500: '#3f397e',
    950: '#000000',
  },
}
SCSS
$custom: #3f397e;
$custom-light: #796fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f397e",
  "rgb": {
    "r": 63,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 245.217,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38904,
    "c": 0.11284,
    "h": 283.8
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#3F397E
secondary
#A3A86A
accent
#CE5AC4
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #3F397E

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

Preview Lab → · Contrast checker → · Palette generator →

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