#3F31DB#3F31DB

#3F31DB is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.2% C 0.242 H 275.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3F31DB
RGBrgb(63, 49, 219)
HSLhsl(245, 70%, 53%)
HSVhsv(245, 78%, 86%)
CMYKcmyk(71.2%, 77.6%, 0%, 14.1%)
CIE-LABlab(34.73, 56.99, -83.30)
CIE-LCHlch(34.73, 100.93, 304.38°)
OKLaboklab(46.24% 0.021 -0.2409)
OKLCHoklch(46.24% 0.242 275)
XYZxyz(15.9302, 8.3663, 67.7794)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31DB #CDDB31
analogous
#3178DB #3F31DB #9431DB
triadic
#3F31DB #DB3F31 #31DB3F
tetradic
#3F31DB #DB3178 #CDDB31 #31DB94
square
#3F31DB #DB3178 #CDDB31 #31DB94
split-complementary
#3F31DB #DB9431 #78DB31
monochromatic
#1E167C #2B1FB0 #3F31DB #7065E4 #A099ED

Accessibility & contrast

On white

7.85
#3F31DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3F31DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31DB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31DB#FFFFFF#000000##FFFFFF
##3F31DB1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E0
Deuteranopia (green-blind)
#004AD8
Tritanopia (blue-blind)
#006586
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f31db;
/* rgb */ color: rgb(63, 49, 219);
/* oklch */ color: oklch(46.2% 0.242 275.0);
Tailwind
colors: {
  custom: {
    50: '#8b6de8',
    500: '#3f31db',
    950: '#000000',
  },
}
SCSS
$custom: #3f31db;
$custom-light: #8b6de8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31db",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 244.941,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.2418,
    "h": 275
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

primary
#3F31DB
secondary
#D3D98F
accent
#ED3BDE
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #3F31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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