#3F42B4#3F42B4

#3F42B4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.176 H 275.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#3F42B4
RGBrgb(63, 66, 180)
HSLhsl(238, 48%, 48%)
HSVhsv(238, 65%, 71%)
CMYKcmyk(65%, 63.3%, 0%, 29.4%)
CIE-LABlab(34.49, 34.81, -60.94)
CIE-LCHlch(34.49, 70.18, 299.73°)
OKLaboklab(44.95% 0.017 -0.1756)
OKLCHoklch(44.95% 0.176 275.5)
XYZxyz(12.2336, 8.2474, 44.1184)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42B4 #B4B13F
analogous
#3F7CB4 #3F42B4 #773FB4
triadic
#3F42B4 #B43F42 #42B43F
tetradic
#3F42B4 #B43F7C #B4B13F #3FB477
square
#3F42B4 #B43F7C #B4B13F #3FB477
split-complementary
#3F42B4 #B4773F #7CB43F
monochromatic
#1F2159 #2F3187 #3F42B4 #6769CA #9496DA

Accessibility & contrast

On white

7.93
#3F42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3F42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42B4
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42B4#FFFFFF#000000##FFFFFF
##3F42B41.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3f42b4;
/* rgb */ color: rgb(63, 66, 180);
/* oklch */ color: oklch(44.9% 0.176 275.5);
Tailwind
colors: {
  custom: {
    50: '#8276cb',
    500: '#3f42b4',
    950: '#000000',
  },
}
SCSS
$custom: #3f42b4;
$custom-light: #8276cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42b4",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 238.462,
    "s": 48.148,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44947,
    "c": 0.17647,
    "h": 275.5
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#3F42B4
secondary
#C5C38A
accent
#D450D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3F42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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