#3F45B2#3F45B2

#3F45B2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.170 H 274.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#3F45B2
RGBrgb(63, 69, 178)
HSLhsl(237, 48%, 47%)
HSVhsv(237, 65%, 70%)
CMYKcmyk(64.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(35.06, 32.23, -58.84)
CIE-LCHlch(35.06, 67.08, 298.71°)
OKLaboklab(45.31% 0.0146 -0.1694)
OKLCHoklch(45.31% 0.17 274.9)
XYZxyz(12.2113, 8.5263, 43.1131)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F45B2 #B2AC3F
analogous
#3F7EB2 #3F45B2 #733FB2
triadic
#3F45B2 #B23F45 #45B23F
tetradic
#3F45B2 #B23F7E #B2AC3F #3FB273
square
#3F45B2 #B23F7E #B2AC3F #3FB273
split-complementary
#3F45B2 #B2733F #7EB23F
monochromatic
#1F2258 #2F3385 #3F45B2 #666BC9 #9396D9

Accessibility & contrast

On white

7.76
#3F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3F45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F45B2
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F45B2#FFFFFF#000000##FFFFFF
##3F45B21.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f45b2;
/* rgb */ color: rgb(63, 69, 178);
/* oklch */ color: oklch(45.3% 0.170 274.9);
Tailwind
colors: {
  custom: {
    50: '#8178ca',
    500: '#3f45b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f45b2;
$custom-light: #8178ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f45b2",
  "rgb": {
    "r": 63,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 236.87,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.17007,
    "h": 274.9
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#3F45B2
secondary
#C4C189
accent
#D050D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3F45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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