#3F54B2#3F54B2

#3F54B2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.151 H 270.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#3F54B2
RGBrgb(63, 84, 178)
HSLhsl(229, 48%, 47%)
HSVhsv(229, 65%, 70%)
CMYKcmyk(64.6%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.92, 22.57, -52.57)
CIE-LCHlch(38.92, 57.21, 293.23°)
OKLaboklab(48.19% 0.0009 -0.1509)
OKLCHoklch(48.19% 0.151 270.3)
XYZxyz(13.2534, 10.6106, 43.4605)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F54B2 #B29D3F
analogous
#3F8EB2 #3F54B2 #633FB2
triadic
#3F54B2 #B23F54 #54B23F
tetradic
#3F54B2 #B23F8E #B29D3F #3FB263
square
#3F54B2 #B23F8E #B29D3F #3FB263
split-complementary
#3F54B2 #B2633F #8EB23F
monochromatic
#1F2958 #2F3F85 #3F54B2 #6678C9 #939FD9

Accessibility & contrast

On white

6.73
#3F54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3F54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F54B2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F54B2#FFFFFF#000000##FFFFFF
##3F54B21.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3f54b2;
/* rgb */ color: rgb(63, 84, 178);
/* oklch */ color: oklch(48.2% 0.151 270.3);
Tailwind
colors: {
  custom: {
    50: '#8083ca',
    500: '#3f54b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f54b2;
$custom-light: #8083ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f54b2",
  "rgb": {
    "r": 63,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 229.043,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48191,
    "c": 0.15087,
    "h": 270.3
  },
  "luminance": 0.10612
}

Semantic roles & 50–950 ramp

primary
#3F54B2
secondary
#C4B989
accent
#BF50D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3F54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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