#3F478D#3F478D

#3F478D is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.8% C 0.115 H 275.5°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#3F478D
RGBrgb(63, 71, 141)
HSLhsl(234, 38%, 40%)
HSVhsv(234, 55%, 55%)
CMYKcmyk(55.3%, 49.6%, 0%, 44.7%)
CIE-LABlab(32.89, 18.09, -40.04)
CIE-LCHlch(32.89, 43.94, 294.31°)
OKLaboklab(42.84% 0.0111 -0.1142)
OKLCHoklch(42.84% 0.115 275.5)
XYZxyz(9.1093, 7.4857, 26.1590)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F478D #8D853F
analogous
#3F6E8D #3F478D #5E3F8D
triadic
#3F478D #8D3F47 #478D3F
tetradic
#3F478D #8D3F6E #8D853F #3F8D5E
square
#3F478D #8D3F6E #8D853F #3F8D5E
split-complementary
#3F478D #8D5E3F #6E8D3F
monochromatic
#191C38 #2C3263 #3F478D #565FB3 #8087C6

Accessibility & contrast

On white

8.41
#3F478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3F478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F478D
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F478D#FFFFFF#000000##FFFFFF
##3F478D1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#1C4A8B
Tritanopia (blue-blind)
#195663
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3f478d;
/* rgb */ color: rgb(63, 71, 141);
/* oklch */ color: oklch(42.8% 0.115 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a7aaf',
    500: '#3f478d',
    950: '#000000',
  },
}
SCSS
$custom: #3f478d;
$custom-light: #7a7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f478d",
  "rgb": {
    "r": 63,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 233.846,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.42838,
    "c": 0.1147,
    "h": 275.5
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#3F478D
secondary
#B1AB77
accent
#C25ACE
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #3F478D

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

Preview Lab → · Contrast checker → · Palette generator →

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