#3141A2#3141A2

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

Color values

HEX#3141A2
RGBrgb(49, 65, 162)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 64%)
CMYKcmyk(69.8%, 59.9%, 0%, 36.5%)
CIE-LABlab(31.90, 27.00, -54.45)
CIE-LCHlch(31.90, 60.77, 296.38°)
OKLaboklab(42.35% 0.0026 -0.1569)
OKLCHoklch(42.35% 0.157 271)
XYZxyz(9.6763, 7.0413, 35.0246)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141A2 #A29231
analogous
#317AA2 #3141A2 #5A31A2
triadic
#3141A2 #A23141 #41A231
tetradic
#3141A2 #A2317A #A29231 #31A25A
square
#3141A2 #A2317A #A29231 #31A25A
split-complementary
#3141A2 #A25A31 #7AA231
monochromatic
#151B44 #232E73 #3141A2 #485AC8 #7785D6

Accessibility & contrast

On white

8.72
#3141A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3141A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141A2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141A2#FFFFFF#000000##FFFFFF
##3141A21.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)
#0050A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3141a2;
/* rgb */ color: rgb(49, 65, 162);
/* oklch */ color: oklch(42.3% 0.157 271.0);
Tailwind
colors: {
  custom: {
    50: '#7875be',
    500: '#3141a2',
    950: '#000000',
  },
}
SCSS
$custom: #3141a2;
$custom-light: #7875be;
$custom-dark: #000000;
JSON
{
  "hex": "#3141a2",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 231.504,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42345,
    "c": 0.15697,
    "h": 271
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3141A2

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

Preview Lab → · Contrast checker → · Palette generator →

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