#3F31B9#3F31B9

#3F31B9 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.7% C 0.202 H 278.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#3F31B9
RGBrgb(63, 49, 185)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 74%, 73%)
CMYKcmyk(65.9%, 73.5%, 0%, 27.5%)
CIE-LABlab(31.24, 46.52, -69.23)
CIE-LCHlch(31.24, 83.41, 303.90°)
OKLaboklab(42.74% 0.0286 -0.1999)
OKLCHoklch(42.74% 0.202 278.2)
XYZxyz(11.9023, 6.7552, 46.5662)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B9 #ABB931
analogous
#3167B9 #3F31B9 #8331B9
triadic
#3F31B9 #B93F31 #31B93F
tetradic
#3F31B9 #B93167 #ABB931 #31B983
square
#3F31B9 #B93167 #ABB931 #31B983
split-complementary
#3F31B9 #B98331 #67B931
monochromatic
#1E1758 #2F2489 #3F31B9 #6255D2 #8F86DF

Accessibility & contrast

On white

8.93
#3F31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3F31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B9
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B9#FFFFFF#000000##FFFFFF
##3F31B91.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3f31b9;
/* rgb */ color: rgb(63, 49, 185);
/* oklch */ color: oklch(42.7% 0.202 278.2);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#3f31b9',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b9;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b9",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 246.176,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42741,
    "c": 0.20196,
    "h": 278.2
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#3F31B9
secondary
#C1C87D
accent
#E146D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3F31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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