#3141AB#3141AB

#3141AB is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.169 H 270.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#3141AB
RGBrgb(49, 65, 171)
HSLhsl(232, 55%, 43%)
HSVhsv(232, 71%, 67%)
CMYKcmyk(71.3%, 62%, 0%, 32.9%)
CIE-LABlab(32.64, 30.29, -58.64)
CIE-LCHlch(32.64, 66.01, 297.32°)
OKLaboklab(43.12% 0.0025 -0.1693)
OKLCHoklch(43.12% 0.169 270.8)
XYZxyz(10.5051, 7.3728, 39.3896)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141AB #AB9B31
analogous
#317EAB #3141AB #5E31AB
triadic
#3141AB #AB3141 #41AB31
tetradic
#3141AB #AB317E #AB9B31 #31AB5E
square
#3141AB #AB317E #AB9B31 #31AB5E
split-complementary
#3141AB #AB5E31 #7EAB31
monochromatic
#161D4C #232F7B #3141AB #4D5ECC #7D89DA

Accessibility & contrast

On white

8.49
#3141AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3141AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141AB
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141AB#FFFFFF#000000##FFFFFF
##3141AB1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3141ab;
/* rgb */ color: rgb(49, 65, 171);
/* oklch */ color: oklch(43.1% 0.169 270.8);
Tailwind
colors: {
  custom: {
    50: '#7a75c5',
    500: '#3141ab',
    950: '#000000',
  },
}
SCSS
$custom: #3141ab;
$custom-light: #7a75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3141ab",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 232.131,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43124,
    "c": 0.16929,
    "h": 270.8
  },
  "luminance": 0.07374
}

Semantic roles & 50–950 ramp

primary
#3141AB
secondary
#C2B875
accent
#CB49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3141AB

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

Preview Lab → · Contrast checker → · Palette generator →

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