#3945A1#3945A1

#3945A1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.148 H 273.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#3945A1
RGBrgb(57, 69, 161)
HSLhsl(233, 48%, 43%)
HSVhsv(233, 65%, 63%)
CMYKcmyk(64.6%, 57.1%, 0%, 36.9%)
CIE-LABlab(33.35, 25.26, -51.47)
CIE-LCHlch(33.35, 57.34, 296.14°)
OKLaboklab(43.53% 0.0078 -0.148)
OKLCHoklch(43.53% 0.148 273)
XYZxyz(10.2463, 7.6984, 34.6573)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3945A1 #A19539
analogous
#3979A1 #3945A1 #6139A1
triadic
#3945A1 #A13945 #45A139
tetradic
#3945A1 #A13979 #A19539 #39A161
square
#3945A1 #A13979 #A19539 #39A161
split-complementary
#3945A1 #A16139 #79A139
monochromatic
#191E47 #293274 #3945A1 #5561C3 #828BD3

Accessibility & contrast

On white

8.27
#3945A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3945A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3945A1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3945A1#FFFFFF#000000##FFFFFF
##3945A11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3945a1;
/* rgb */ color: rgb(57, 69, 161);
/* oklch */ color: oklch(43.5% 0.148 273.0);
Tailwind
colors: {
  custom: {
    50: '#7b78bd',
    500: '#3945a1',
    950: '#000000',
  },
}
SCSS
$custom: #3945a1;
$custom-light: #7b78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3945a1",
  "rgb": {
    "r": 57,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 233.077,
    "s": 47.706,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43525,
    "c": 0.14817,
    "h": 273
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#3945A1
secondary
#BCB579
accent
#C850D7
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3945A1

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

Preview Lab → · Contrast checker → · Palette generator →

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