#3945B2#3945B2

#3945B2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.9% C 0.172 H 272.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3945B2
RGBrgb(57, 69, 178)
HSLhsl(234, 51%, 46%)
HSVhsv(234, 68%, 70%)
CMYKcmyk(68%, 61.2%, 0%, 30.2%)
CIE-LABlab(34.68, 31.33, -59.46)
CIE-LCHlch(34.68, 67.21, 297.78°)
OKLaboklab(44.93% 0.0078 -0.1714)
OKLCHoklch(44.93% 0.172 272.6)
XYZxyz(11.8487, 8.3394, 43.0961)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3945B2 #B2A639
analogous
#3981B2 #3945B2 #6939B2
triadic
#3945B2 #B23945 #45B239
tetradic
#3945B2 #B23981 #B2A639 #39B269
square
#3945B2 #B23981 #B2A639 #39B269
split-complementary
#3945B2 #B26939 #81B239
monochromatic
#1B2155 #2A3384 #3945B2 #5D68CB #8B93DA

Accessibility & contrast

On white

7.87
#3945B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3945B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3945B2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3945B2#FFFFFF#000000##FFFFFF
##3945B21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3945b2;
/* rgb */ color: rgb(57, 69, 178);
/* oklch */ color: oklch(44.9% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#7e78ca',
    500: '#3945b2',
    950: '#000000',
  },
}
SCSS
$custom: #3945b2;
$custom-light: #7e78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3945b2",
  "rgb": {
    "r": 57,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 234.05,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44933,
    "c": 0.17163,
    "h": 272.6
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#3945B2
secondary
#C4BE82
accent
#CD4DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3945B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3945B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva