#3F56A8#3F56A8

#3F56A8 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.134 H 269.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3F56A8
RGBrgb(63, 86, 168)
HSLhsl(227, 45%, 45%)
HSVhsv(227, 63%, 66%)
CMYKcmyk(62.5%, 48.8%, 0%, 34.1%)
CIE-LABlab(38.79, 17.71, -46.86)
CIE-LCHlch(38.79, 50.09, 290.71°)
OKLaboklab(47.88% -0.0021 -0.134)
OKLCHoklch(47.88% 0.134 269.1)
XYZxyz(12.4432, 10.5384, 38.4166)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F56A8 #A8913F
analogous
#3F8BA8 #3F56A8 #5C3FA8
triadic
#3F56A8 #A83F56 #56A83F
tetradic
#3F56A8 #A83F8B #A8913F #3FA85C
square
#3F56A8 #A83F8B #A8913F #3FA85C
split-complementary
#3F56A8 #A85C3F #8BA83F
monochromatic
#1E284F #2E3F7B #3F56A8 #6176C4 #8D9DD4

Accessibility & contrast

On white

6.76
#3F56A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3F56A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F56A8
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F56A8#FFFFFF#000000##FFFFFF
##3F56A81.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#1857A6
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3f56a8;
/* rgb */ color: rgb(63, 86, 168);
/* oklch */ color: oklch(47.9% 0.134 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e85c2',
    500: '#3f56a8',
    950: '#000000',
  },
}
SCSS
$custom: #3f56a8;
$custom-light: #7e85c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f56a8",
  "rgb": {
    "r": 63,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 226.857,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47882,
    "c": 0.13404,
    "h": 269.1
  },
  "luminance": 0.10539
}

Semantic roles & 50–950 ramp

primary
#3F56A8
secondary
#BFB284
accent
#B953D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #3F56A8

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

Preview Lab → · Contrast checker → · Palette generator →

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