#3141A1#3141A1

#3141A1 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.156 H 271.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#3141A1
RGBrgb(49, 65, 161)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 70%, 63%)
CMYKcmyk(69.6%, 59.6%, 0%, 36.9%)
CIE-LABlab(31.82, 26.63, -53.98)
CIE-LCHlch(31.82, 60.19, 296.26°)
OKLaboklab(42.26% 0.0026 -0.1556)
OKLCHoklch(42.26% 0.156 271)
XYZxyz(9.5878, 7.0059, 34.5583)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141A1 #A19131
analogous
#3179A1 #3141A1 #5931A1
triadic
#3141A1 #A13141 #41A131
tetradic
#3141A1 #A13179 #A19131 #31A159
square
#3141A1 #A13179 #A19131 #31A159
split-complementary
#3141A1 #A15931 #79A131
monochromatic
#141B43 #232E72 #3141A1 #485AC7 #7784D6

Accessibility & contrast

On white

8.74
#3141A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3141A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141A1
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141A1#FFFFFF#000000##FFFFFF
##3141A11.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3141a1;
/* rgb */ color: rgb(49, 65, 161);
/* oklch */ color: oklch(42.3% 0.156 271.0);
Tailwind
colors: {
  custom: {
    50: '#7875be',
    500: '#3141a1',
    950: '#000000',
  },
}
SCSS
$custom: #3141a1;
$custom-light: #7875be;
$custom-dark: #000000;
JSON
{
  "hex": "#3141a1",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 231.429,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.15559,
    "h": 271
  },
  "luminance": 0.07007
}

Semantic roles & 50–950 ramp

primary
#3141A1
secondary
#BEB370
accent
#C84BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3141A1

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

Preview Lab → · Contrast checker → · Palette generator →

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