#3141A5#3141A5

#3141A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.161 H 270.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#3141A5
RGBrgb(49, 65, 165)
HSLhsl(232, 54%, 42%)
HSVhsv(232, 70%, 65%)
CMYKcmyk(70.3%, 60.6%, 0%, 35.3%)
CIE-LABlab(32.14, 28.10, -55.86)
CIE-LCHlch(32.14, 62.53, 296.71°)
OKLaboklab(42.6% 0.0026 -0.1611)
OKLCHoklch(42.6% 0.161 270.9)
XYZxyz(9.9461, 7.1492, 36.4458)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141A5 #A59531
analogous
#317BA5 #3141A5 #5B31A5
triadic
#3141A5 #A53141 #41A531
tetradic
#3141A5 #A5317B #A59531 #31A55B
square
#3141A5 #A5317B #A59531 #31A55B
split-complementary
#3141A5 #A55B31 #7BA531
monochromatic
#151C47 #232E76 #3141A5 #4A5CC9 #7986D7

Accessibility & contrast

On white

8.64
#3141A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3141A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141A5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141A5#FFFFFF#000000##FFFFFF
##3141A51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3141a5;
/* rgb */ color: rgb(49, 65, 165);
/* oklch */ color: oklch(42.6% 0.161 270.9);
Tailwind
colors: {
  custom: {
    50: '#7875c1',
    500: '#3141a5',
    950: '#000000',
  },
}
SCSS
$custom: #3141a5;
$custom-light: #7875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3141a5",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 231.724,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42602,
    "c": 0.16111,
    "h": 270.9
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#3141A5
secondary
#C0B572
accent
#C94ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3141A5

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

Preview Lab → · Contrast checker → · Palette generator →

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