#3140A5#3140A5

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

Color values

HEX#3140A5
RGBrgb(49, 64, 165)
HSLhsl(232, 54%, 42%)
HSVhsv(232, 70%, 65%)
CMYKcmyk(70.3%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.89, 28.76, -56.28)
CIE-LCHlch(31.89, 63.20, 297.07°)
OKLaboklab(42.41% 0.0034 -0.1623)
OKLCHoklch(42.41% 0.162 271.2)
XYZxyz(9.8892, 7.0354, 36.4268)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140A5 #A59631
analogous
#317AA5 #3140A5 #5C31A5
triadic
#3140A5 #A53140 #40A531
tetradic
#3140A5 #A5317A #A59631 #31A55C
square
#3140A5 #A5317A #A59631 #31A55C
split-complementary
#3140A5 #A55C31 #7AA531
monochromatic
#151B47 #232E76 #3140A5 #4A5AC9 #7985D7

Accessibility & contrast

On white

8.72
#3140A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3140A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140A5
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140A5#FFFFFF#000000##FFFFFF
##3140A51.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3140a5;
/* rgb */ color: rgb(49, 64, 165);
/* oklch */ color: oklch(42.4% 0.162 271.2);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#3140a5',
    950: '#000000',
  },
}
SCSS
$custom: #3140a5;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3140a5",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 232.241,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42412,
    "c": 0.16237,
    "h": 271.2
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#3140A5
secondary
#C0B672
accent
#CB4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3140A5

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

Preview Lab → · Contrast checker → · Palette generator →

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