#3F5FBA#3F5FBA

#3F5FBA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.148 H 266.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#3F5FBA
RGBrgb(63, 95, 186)
HSLhsl(224, 49%, 49%)
HSVhsv(224, 66%, 73%)
CMYKcmyk(66.1%, 48.9%, 0%, 27.1%)
CIE-LABlab(42.44, 18.33, -51.59)
CIE-LCHlch(42.44, 54.75, 289.56°)
OKLaboklab(51.03% -0.0088 -0.1478)
OKLCHoklch(51.03% 0.148 266.6)
XYZxyz(15.0020, 12.7849, 48.1220)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5FBA #BA9A3F
analogous
#3F9DBA #3F5FBA #5D3FBA
triadic
#3F5FBA #BA3F5F #5FBA3F
tetradic
#3F5FBA #BA3F9D #BA9A3F #3FBA5D
square
#3F5FBA #BA3F9D #BA9A3F #3FBA5D
split-complementary
#3F5FBA #BA5D3F #9DBA3F
monochromatic
#20305F #30488C #3F5FBA #6A83CC #97A9DC

Accessibility & contrast

On white

5.90
#3F5FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#3F5FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5FBA
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5FBA#FFFFFF#000000##FFFFFF
##3F5FBA1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABD
Deuteranopia (green-blind)
#0F5FB8
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3f5fba;
/* rgb */ color: rgb(63, 95, 186);
/* oklch */ color: oklch(51.0% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#818bcf',
    500: '#3f5fba',
    950: '#000000',
  },
}
SCSS
$custom: #3f5fba;
$custom-light: #818bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5fba",
  "rgb": {
    "r": 63,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 224.39,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51032,
    "c": 0.14808,
    "h": 266.6
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#3F5FBA
secondary
#C8B88D
accent
#B54FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3F5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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