#3F31C8#3F31C8

#3F31C8 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.3% C 0.220 H 276.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#3F31C8
RGBrgb(63, 49, 200)
HSLhsl(246, 61%, 49%)
HSVhsv(246, 76%, 78%)
CMYKcmyk(68.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(32.75, 51.20, -75.57)
CIE-LCHlch(32.75, 91.28, 304.12°)
OKLaboklab(44.26% 0.0254 -0.2184)
OKLCHoklch(44.26% 0.22 276.6)
XYZxyz(13.5701, 7.4223, 55.3499)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C8 #BAC831
analogous
#316FC8 #3F31C8 #8B31C8
triadic
#3F31C8 #C83F31 #31C83F
tetradic
#3F31C8 #C8316F #BAC831 #31C88B
square
#3F31C8 #C8316F #BAC831 #31C88B
split-complementary
#3F31C8 #C88B31 #6FC831
monochromatic
#201966 #302597 #3F31C8 #6A5FD8 #9790E4

Accessibility & contrast

On white

8.45
#3F31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3F31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C8
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C8#FFFFFF#000000##FFFFFF
##3F31C81.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#0046C5
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3f31c8;
/* rgb */ color: rgb(63, 49, 200);
/* oklch */ color: oklch(44.3% 0.220 276.6);
Tailwind
colors: {
  custom: {
    50: '#876cda',
    500: '#3f31c8',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c8;
$custom-light: #876cda;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c8",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 245.563,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44256,
    "c": 0.21986,
    "h": 276.6
  },
  "luminance": 0.07424
}

Semantic roles & 50–950 ramp

primary
#3F31C8
secondary
#C8CE86
accent
#E444D5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3F31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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