#3F42CF#3F42CF

#3F42CF is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.4% C 0.211 H 273.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#3F42CF
RGBrgb(63, 66, 207)
HSLhsl(239, 60%, 53%)
HSVhsv(239, 70%, 81%)
CMYKcmyk(69.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(36.85, 43.94, -72.89)
CIE-LCHlch(36.85, 85.11, 301.08°)
OKLaboklab(47.39% 0.0144 -0.2106)
OKLCHoklch(47.39% 0.211 273.9)
XYZxyz(15.2568, 9.4567, 60.0407)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42CF #CFCC3F
analogous
#3F8ACF #3F42CF #843FCF
triadic
#3F42CF #CF3F42 #42CF3F
tetradic
#3F42CF #CF3F8A #CFCC3F #3FCF84
square
#3F42CF #CF3F8A #CFCC3F #3FCF84
split-complementary
#3F42CF #CF843F #8ACF3F
monochromatic
#1E1F76 #2A2CA7 #3F42CF #7072DB #A1A2E7

Accessibility & contrast

On white

7.26
#3F42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3F42CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42CF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42CF#FFFFFF#000000##FFFFFF
##3F42CF1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3f42cf;
/* rgb */ color: rgb(63, 66, 207);
/* oklch */ color: oklch(47.4% 0.211 273.9);
Tailwind
colors: {
  custom: {
    50: '#8777df',
    500: '#3f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #3f42cf;
$custom-light: #8777df;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42cf",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 238.75,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.21113,
    "h": 273.9
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#3F42CF
secondary
#D4D396
accent
#E045E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #3F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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