#3140A1#3140A1

#3140A1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.157 H 271.3°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#3140A1
RGBrgb(49, 64, 161)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 70%, 63%)
CMYKcmyk(69.6%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.56, 27.29, -54.40)
CIE-LCHlch(31.56, 60.86, 296.64°)
OKLaboklab(42.07% 0.0034 -0.1568)
OKLCHoklch(42.07% 0.157 271.3)
XYZxyz(9.5309, 6.8921, 34.5393)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140A1 #A19231
analogous
#3178A1 #3140A1 #5A31A1
triadic
#3140A1 #A13140 #40A131
tetradic
#3140A1 #A13178 #A19231 #31A15A
square
#3140A1 #A13178 #A19231 #31A15A
split-complementary
#3140A1 #A15A31 #78A131
monochromatic
#141B43 #232D72 #3140A1 #4859C7 #7784D6

Accessibility & contrast

On white

8.83
#3140A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3140A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140A1
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140A1#FFFFFF#000000##FFFFFF
##3140A11.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3140a1;
/* rgb */ color: rgb(49, 64, 161);
/* oklch */ color: oklch(42.1% 0.157 271.3);
Tailwind
colors: {
  custom: {
    50: '#7874be',
    500: '#3140a1',
    950: '#000000',
  },
}
SCSS
$custom: #3140a1;
$custom-light: #7874be;
$custom-dark: #000000;
JSON
{
  "hex": "#3140a1",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 231.964,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.15686,
    "h": 271.3
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3140A1

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

Preview Lab → · Contrast checker → · Palette generator →

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