#3F42BE#3F42BE

#3F42BE is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.8% C 0.190 H 274.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#3F42BE
RGBrgb(63, 66, 190)
HSLhsl(239, 50%, 50%)
HSVhsv(239, 67%, 75%)
CMYKcmyk(66.8%, 65.3%, 0%, 25.5%)
CIE-LABlab(35.34, 38.22, -65.45)
CIE-LCHlch(35.34, 75.79, 300.28°)
OKLaboklab(45.83% 0.0162 -0.1889)
OKLCHoklch(45.83% 0.19 274.9)
XYZxyz(13.2893, 8.6697, 49.6783)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42BE #BEBB3F
analogous
#3F81BE #3F42BE #7C3FBE
triadic
#3F42BE #BE3F42 #42BE3F
tetradic
#3F42BE #BE3F81 #BEBB3F #3FBE7C
square
#3F42BE #BE3F81 #BEBB3F #3FBE7C
split-complementary
#3F42BE #BE7C3F #81BE3F
monochromatic
#212262 #303290 #3F42BE #6C6ECE #9A9CDD

Accessibility & contrast

On white

7.68
#3F42BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3F42BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42BE
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42BE#FFFFFF#000000##FFFFFF
##3F42BE1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3f42be;
/* rgb */ color: rgb(63, 66, 190);
/* oklch */ color: oklch(45.8% 0.190 274.9);
Tailwind
colors: {
  custom: {
    50: '#8477d3',
    500: '#3f42be',
    950: '#000000',
  },
}
SCSS
$custom: #3f42be;
$custom-light: #8477d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42be",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 238.583,
    "s": 50.198,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45828,
    "c": 0.18958,
    "h": 274.9
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

primary
#3F42BE
secondary
#C9C88F
accent
#D64EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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