#3F5FCB#3F5FCB

#3F5FCB is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.3% C 0.172 H 267.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#3F5FCB
RGBrgb(63, 95, 203)
HSLhsl(226, 57%, 52%)
HSVhsv(226, 69%, 80%)
CMYKcmyk(69%, 53.2%, 0%, 20.4%)
CIE-LABlab(43.58, 24.44, -59.60)
CIE-LCHlch(43.58, 64.41, 292.30°)
OKLaboklab(52.26% -0.0071 -0.1714)
OKLCHoklch(52.26% 0.172 267.6)
XYZxyz(16.9179, 13.5513, 58.2124)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5FCB #CBAB3F
analogous
#3FA5CB #3F5FCB #653FCB
triadic
#3F5FCB #CB3F5F #5FCB3F
tetradic
#3F5FCB #CB3FA5 #CBAB3F #3FCB65
square
#3F5FCB #CB3FA5 #CBAB3F #3FCB65
split-complementary
#3F5FCB #CB653F #A5CB3F
monochromatic
#1F3171 #2C47A1 #3F5FCB #6F87D8 #9FAFE5

Accessibility & contrast

On white

5.66
#3F5FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#3F5FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F5FCB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5FCB#FFFFFF#000000##FFFFFF
##3F5FCB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116ECF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3f5fcb;
/* rgb */ color: rgb(63, 95, 203);
/* oklch */ color: oklch(52.3% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#848cdc',
    500: '#3f5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #3f5fcb;
$custom-light: #848cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5fcb",
  "rgb": {
    "r": 63,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 226.286,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52265,
    "c": 0.17152,
    "h": 267.6
  },
  "luminance": 0.13553
}

Semantic roles & 50–950 ramp

primary
#3F5FCB
secondary
#D1C394
accent
#BE47E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3F5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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