#3F31B8#3F31B8

#3F31B8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.201 H 278.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#3F31B8
RGBrgb(63, 49, 184)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 73%, 72%)
CMYKcmyk(65.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(31.14, 46.20, -68.80)
CIE-LCHlch(31.14, 82.87, 303.88°)
OKLaboklab(42.64% 0.0289 -0.1987)
OKLCHoklch(42.64% 0.201 278.3)
XYZxyz(11.7972, 6.7131, 46.0122)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B8 #AAB831
analogous
#3166B8 #3F31B8 #8231B8
triadic
#3F31B8 #B83F31 #31B83F
tetradic
#3F31B8 #B83166 #AAB831 #31B882
square
#3F31B8 #B83166 #AAB831 #31B882
split-complementary
#3F31B8 #B88231 #66B831
monochromatic
#1E1757 #2E2488 #3F31B8 #6255D2 #8E85DE

Accessibility & contrast

On white

8.96
#3F31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3F31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B8
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B8#FFFFFF#000000##FFFFFF
##3F31B81.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3f31b8;
/* rgb */ color: rgb(63, 49, 184);
/* oklch */ color: oklch(42.6% 0.201 278.3);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#3f31b8',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b8;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b8",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 246.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42642,
    "c": 0.20074,
    "h": 278.3
  },
  "luminance": 0.06714
}

Semantic roles & 50–950 ramp

primary
#3F31B8
secondary
#C0C87D
accent
#E147D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3F31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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