#3F5F97#3F5F97

#3F5F97 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 48.8% C 0.098 H 261.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#3F5F97
RGBrgb(63, 95, 151)
HSLhsl(218, 41%, 42%)
HSVhsv(218, 58%, 59%)
CMYKcmyk(58.3%, 37.1%, 0%, 40.8%)
CIE-LABlab(40.37, 5.94, -34.20)
CIE-LCHlch(40.37, 34.71, 279.86°)
OKLaboklab(48.77% -0.0154 -0.0968)
OKLCHoklch(48.77% 0.098 261)
XYZxyz(11.7261, 11.4746, 30.8690)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5F97 #97773F
analogous
#3F8B97 #3F5F97 #4B3F97
triadic
#3F5F97 #973F5F #5F973F
tetradic
#3F5F97 #973F8B #97773F #3F974B
square
#3F5F97 #973F8B #97773F #3F974B
split-complementary
#3F5F97 #974B3F #8B973F
monochromatic
#1B2941 #2D446C #3F5F97 #597CBA #859ECC

Accessibility & contrast

On white

6.37
#3F5F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#3F5F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5F97
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5F97#FFFFFF#000000##FFFFFF
##3F5F971.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486499
Deuteranopia (green-blind)
#3D5B96
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3f5f97;
/* rgb */ color: rgb(63, 95, 151);
/* oklch */ color: oklch(48.8% 0.098 261.0);
Tailwind
colors: {
  custom: {
    50: '#7b8cb6',
    500: '#3f5f97',
    950: '#000000',
  },
}
SCSS
$custom: #3f5f97;
$custom-light: #7b8cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5f97",
  "rgb": {
    "r": 63,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 218.182,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48771,
    "c": 0.09802,
    "h": 261
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#3F5F97
secondary
#B6A17C
accent
#A557D1
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #3F5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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