#3140A4#3140A4

#3140A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.161 H 271.2°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#3140A4
RGBrgb(49, 64, 164)
HSLhsl(232, 54%, 42%)
HSVhsv(232, 70%, 64%)
CMYKcmyk(70.1%, 61%, 0%, 35.7%)
CIE-LABlab(31.80, 28.39, -55.81)
CIE-LCHlch(31.80, 62.62, 296.96°)
OKLaboklab(42.33% 0.0034 -0.161)
OKLCHoklch(42.33% 0.161 271.2)
XYZxyz(9.7986, 6.9991, 35.9493)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140A4 #A49531
analogous
#317AA4 #3140A4 #5C31A4
triadic
#3140A4 #A43140 #40A431
tetradic
#3140A4 #A4317A #A49531 #31A45C
square
#3140A4 #A4317A #A49531 #31A45C
split-complementary
#3140A4 #A45C31 #7AA431
monochromatic
#151B46 #232E75 #3140A4 #495AC9 #7985D7

Accessibility & contrast

On white

8.75
#3140A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3140A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140A4
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140A4#FFFFFF#000000##FFFFFF
##3140A41.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3140a4;
/* rgb */ color: rgb(49, 64, 164);
/* oklch */ color: oklch(42.3% 0.161 271.2);
Tailwind
colors: {
  custom: {
    50: '#7874c0',
    500: '#3140a4',
    950: '#000000',
  },
}
SCSS
$custom: #3140a4;
$custom-light: #7874c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3140a4",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 232.174,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42325,
    "c": 0.161,
    "h": 271.2
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#3140A4
secondary
#BFB572
accent
#CA4ADD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3140A4

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

Preview Lab → · Contrast checker → · Palette generator →

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