#3951AF#3951AF

#3951AF is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.152 H 269.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#3951AF
RGBrgb(57, 81, 175)
HSLhsl(228, 51%, 45%)
HSVhsv(228, 67%, 69%)
CMYKcmyk(67.4%, 53.7%, 0%, 31.4%)
CIE-LABlab(37.57, 22.45, -52.99)
CIE-LCHlch(37.57, 57.55, 292.96°)
OKLaboklab(47.02% -0.0026 -0.1523)
OKLCHoklch(47.02% 0.152 269)
XYZxyz(12.3650, 9.8487, 41.7985)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AF #AF9739
analogous
#398CAF #3951AF #5C39AF
triadic
#3951AF #AF3951 #51AF39
tetradic
#3951AF #AF398C #AF9739 #39AF5C
square
#3951AF #AF398C #AF9739 #39AF5C
split-complementary
#3951AF #AF5C39 #8CAF39
monochromatic
#1B2653 #2A3C81 #3951AF #5B72CA #8A9AD9

Accessibility & contrast

On white

7.07
#3951AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3951AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3951AF
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951AF#FFFFFF#000000##FFFFFF
##3951AF1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951af;
/* rgb */ color: rgb(57, 81, 175);
/* oklch */ color: oklch(47.0% 0.152 269.0);
Tailwind
colors: {
  custom: {
    50: '#7d81c8',
    500: '#3951af',
    950: '#000000',
  },
}
SCSS
$custom: #3951af;
$custom-light: #7d81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3951af",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 227.797,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.1523,
    "h": 269
  },
  "luminance": 0.0985
}

Semantic roles & 50–950 ramp

primary
#3951AF
secondary
#C3B681
accent
#BE4DDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3951AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva