#3F5FB2#3F5FB2

#3F5FB2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.137 H 265.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#3F5FB2
RGBrgb(63, 95, 178)
HSLhsl(223, 48%, 47%)
HSVhsv(223, 65%, 70%)
CMYKcmyk(64.6%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.93, 15.46, -47.73)
CIE-LCHlch(41.93, 50.17, 287.95°)
OKLaboklab(50.48% -0.0099 -0.1364)
OKLCHoklch(50.48% 0.137 265.8)
XYZxyz(14.1752, 12.4542, 43.7677)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5FB2 #B2923F
analogous
#3F99B2 #3F5FB2 #583FB2
triadic
#3F5FB2 #B23F5F #5FB23F
tetradic
#3F5FB2 #B23F99 #B2923F #3FB258
square
#3F5FB2 #B23F99 #B2923F #3FB258
split-complementary
#3F5FB2 #B2583F #99B23F
monochromatic
#1F2F58 #2F4785 #3F5FB2 #6681C9 #93A6D9

Accessibility & contrast

On white

6.02
#3F5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#3F5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5FB2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5FB2#FFFFFF#000000##FFFFFF
##3F5FB21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B5
Deuteranopia (green-blind)
#215EB0
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3f5fb2;
/* rgb */ color: rgb(63, 95, 178);
/* oklch */ color: oklch(50.5% 0.137 265.8);
Tailwind
colors: {
  custom: {
    50: '#808cc9',
    500: '#3f5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #3f5fb2;
$custom-light: #808cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5fb2",
  "rgb": {
    "r": 63,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 223.304,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5048,
    "c": 0.13681,
    "h": 265.8
  },
  "luminance": 0.12456
}

Semantic roles & 50–950 ramp

primary
#3F5FB2
secondary
#C4B489
accent
#B250D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #3F5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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