#3F508E#3F508E

#3F508E is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.8% C 0.104 H 270.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3F508E
RGBrgb(63, 80, 142)
HSLhsl(227, 39%, 40%)
HSVhsv(227, 56%, 56%)
CMYKcmyk(55.6%, 43.7%, 0%, 44.3%)
CIE-LABlab(35.49, 12.51, -36.50)
CIE-LCHlch(35.49, 38.58, 288.92°)
OKLaboklab(44.84% 0.0005 -0.1037)
OKLCHoklch(44.84% 0.104 270.2)
XYZxyz(9.7994, 8.7464, 26.7578)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F508E #8E7D3F
analogous
#3F778E #3F508E #563F8E
triadic
#3F508E #8E3F50 #508E3F
tetradic
#3F508E #8E3F77 #8E7D3F #3F8E56
square
#3F508E #8E3F77 #8E7D3F #3F8E56
split-complementary
#3F508E #8E563F #778E3F
monochromatic
#192039 #2C3864 #3F508E #566AB4 #8190C7

Accessibility & contrast

On white

7.64
#3F508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3F508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F508E
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F508E#FFFFFF#000000##FFFFFF
##3F508E1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365790
Deuteranopia (green-blind)
#2C508D
Tritanopia (blue-blind)
#165E68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3f508e;
/* rgb */ color: rgb(63, 80, 142);
/* oklch */ color: oklch(44.8% 0.104 270.2);
Tailwind
colors: {
  custom: {
    50: '#7a80af',
    500: '#3f508e',
    950: '#000000',
  },
}
SCSS
$custom: #3f508e;
$custom-light: #7a80af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f508e",
  "rgb": {
    "r": 63,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 227.089,
    "s": 38.537,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44842,
    "c": 0.10366,
    "h": 270.2
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#3F508E
secondary
#B1A578
accent
#B559CE
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0A10
muted
#7C7C7F

Preview Lab

Preview with #3F508E

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

Preview Lab → · Contrast checker → · Palette generator →

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