#3945A4#3945A4

#3945A4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.152 H 272.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3945A4
RGBrgb(57, 69, 164)
HSLhsl(233, 48%, 43%)
HSVhsv(233, 65%, 64%)
CMYKcmyk(65.2%, 57.9%, 0%, 35.7%)
CIE-LABlab(33.57, 26.34, -52.91)
CIE-LCHlch(33.57, 59.10, 296.46°)
OKLaboklab(43.77% 0.0078 -0.1522)
OKLCHoklch(43.77% 0.152 272.9)
XYZxyz(10.5141, 7.8055, 36.0673)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3945A4 #A49839
analogous
#397AA4 #3945A4 #6239A4
triadic
#3945A4 #A43945 #45A439
tetradic
#3945A4 #A4397A #A49839 #39A462
square
#3945A4 #A4397A #A49839 #39A462
split-complementary
#3945A4 #A46239 #7AA439
monochromatic
#191F49 #293277 #3945A4 #5662C4 #838CD4

Accessibility & contrast

On white

8.20
#3945A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3945A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3945A4
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3945A4#FFFFFF#000000##FFFFFF
##3945A41.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3945a4;
/* rgb */ color: rgb(57, 69, 164);
/* oklch */ color: oklch(43.8% 0.152 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c78c0',
    500: '#3945a4',
    950: '#000000',
  },
}
SCSS
$custom: #3945a4;
$custom-light: #7c78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3945a4",
  "rgb": {
    "r": 57,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 233.271,
    "s": 48.416,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43767,
    "c": 0.15239,
    "h": 272.9
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#3945A4
secondary
#BEB67B
accent
#C950D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3945A4

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

Preview Lab → · Contrast checker → · Palette generator →

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