#3948B5#3948B5

#3948B5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.7% C 0.172 H 271.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3948B5
RGBrgb(57, 72, 181)
HSLhsl(233, 52%, 47%)
HSVhsv(233, 69%, 71%)
CMYKcmyk(68.5%, 60.2%, 0%, 29%)
CIE-LABlab(35.67, 30.46, -59.62)
CIE-LCHlch(35.67, 66.95, 297.07°)
OKLaboklab(45.74% 0.0053 -0.1719)
OKLCHoklch(45.74% 0.172 271.8)
XYZxyz(12.3424, 8.8396, 44.7629)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3948B5 #B5A639
analogous
#3986B5 #3948B5 #6839B5
triadic
#3948B5 #B53948 #48B539
tetradic
#3948B5 #B53986 #B5A639 #39B568
square
#3948B5 #B53986 #B5A639 #39B568
split-complementary
#3948B5 #B56839 #86B539
monochromatic
#1C2358 #2A3586 #3948B5 #5F6CCD #8D97DB

Accessibility & contrast

On white

7.59
#3948B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3948B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3948B5
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3948B5#FFFFFF#000000##FFFFFF
##3948B51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3948b5;
/* rgb */ color: rgb(57, 72, 181);
/* oklch */ color: oklch(45.7% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#7f7bcc',
    500: '#3948b5',
    950: '#000000',
  },
}
SCSS
$custom: #3948b5;
$custom-light: #7f7bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3948b5",
  "rgb": {
    "r": 57,
    "g": 72,
    "b": 181
  },
  "hsl": {
    "h": 232.742,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45744,
    "c": 0.17196,
    "h": 271.8
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#3948B5
secondary
#C6BE84
accent
#CA4CDC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3948B5

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

Preview Lab → · Contrast checker → · Palette generator →

#3948B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva