#3F5178#3F5178

#3F5178 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.069 H 264.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3F5178
RGBrgb(63, 81, 120)
HSLhsl(221, 31%, 36%)
HSVhsv(221, 48%, 47%)
CMYKcmyk(47.5%, 32.5%, 0%, 52.9%)
CIE-LABlab(34.59, 4.47, -24.38)
CIE-LCHlch(34.59, 24.79, 280.39°)
OKLaboklab(43.76% -0.0062 -0.0684)
OKLCHoklch(43.76% 0.069 264.8)
XYZxyz(8.3814, 8.2972, 18.9255)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5178 #78663F
analogous
#3F6D78 #3F5178 #493F78
triadic
#3F5178 #783F51 #51783F
tetradic
#3F5178 #783F6D #78663F #3F7849
square
#3F5178 #783F6D #78663F #3F7849
split-complementary
#3F5178 #78493F #6D783F
monochromatic
#151B28 #2A3650 #3F5178 #546CA0 #798DB9

Accessibility & contrast

On white

7.90
#3F5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3F5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F5178
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5178#FFFFFF#000000##FFFFFF
##3F51781.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43547A
Deuteranopia (green-blind)
#3D4F77
Tritanopia (blue-blind)
#29595F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3f5178;
/* rgb */ color: rgb(63, 81, 120);
/* oklch */ color: oklch(43.8% 0.069 264.8);
Tailwind
colors: {
  custom: {
    50: '#77819f',
    500: '#3f5178',
    950: '#000000',
  },
}
SCSS
$custom: #3f5178;
$custom-light: #77819f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5178",
  "rgb": {
    "r": 63,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 221.053,
    "s": 31.148,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4376,
    "c": 0.06864,
    "h": 264.8
  },
  "luminance": 0.08298
}

Semantic roles & 50–950 ramp

primary
#3F5178
secondary
#A39370
accent
#A760C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0E
muted
#7B7C7E

Preview Lab

Preview with #3F5178

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

Preview Lab → · Contrast checker → · Palette generator →

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