#3F42AC#3F42AC

#3F42AC is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.166 H 276.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#3F42AC
RGBrgb(63, 66, 172)
HSLhsl(238, 46%, 46%)
HSVhsv(238, 63%, 67%)
CMYKcmyk(63.4%, 61.6%, 0%, 32.5%)
CIE-LABlab(33.84, 32.06, -57.25)
CIE-LCHlch(33.84, 65.62, 299.25°)
OKLaboklab(44.26% 0.0174 -0.1648)
OKLCHoklch(44.26% 0.166 276)
XYZxyz(11.4421, 7.9308, 39.9496)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42AC #ACA93F
analogous
#3F78AC #3F42AC #723FAC
triadic
#3F42AC #AC3F42 #42AC3F
tetradic
#3F42AC #AC3F78 #ACA93F #3FAC72
square
#3F42AC #AC3F78 #ACA93F #3FAC72
split-complementary
#3F42AC #AC723F #78AC3F
monochromatic
#1E2052 #2F317F #3F42AC #6365C6 #8F91D6

Accessibility & contrast

On white

8.12
#3F42AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3F42AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42AC
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42AC#FFFFFF#000000##FFFFFF
##3F42AC1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3f42ac;
/* rgb */ color: rgb(63, 66, 172);
/* oklch */ color: oklch(44.3% 0.166 276.0);
Tailwind
colors: {
  custom: {
    50: '#8076c6',
    500: '#3f42ac',
    950: '#000000',
  },
}
SCSS
$custom: #3f42ac;
$custom-light: #8076c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42ac",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 238.349,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44262,
    "c": 0.16574,
    "h": 276
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#3F42AC
secondary
#C1C086
accent
#D252D6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3F42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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