#3140AB#3140AB

#3140AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.171 H 271.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3140AB
RGBrgb(49, 64, 171)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 67%)
CMYKcmyk(71.3%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.39, 30.94, -59.05)
CIE-LCHlch(32.39, 66.67, 297.65°)
OKLaboklab(42.94% 0.0033 -0.1705)
OKLCHoklch(42.94% 0.171 271.1)
XYZxyz(10.4482, 7.2590, 39.3707)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AB #AB9C31
analogous
#317DAB #3140AB #5F31AB
triadic
#3140AB #AB3140 #40AB31
tetradic
#3140AB #AB317D #AB9C31 #31AB5F
square
#3140AB #AB317D #AB9C31 #31AB5F
split-complementary
#3140AB #AB5F31 #7DAB31
monochromatic
#161C4C #232E7B #3140AB #4D5DCC #7D88DA

Accessibility & contrast

On white

8.56
#3140AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3140AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140AB
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140AB#FFFFFF#000000##FFFFFF
##3140AB1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3140ab;
/* rgb */ color: rgb(49, 64, 171);
/* oklch */ color: oklch(42.9% 0.171 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c5',
    500: '#3140ab',
    950: '#000000',
  },
}
SCSS
$custom: #3140ab;
$custom-light: #7a74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3140ab",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 232.623,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42939,
    "c": 0.17052,
    "h": 271.1
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#3140AB
secondary
#C2B975
accent
#CC49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3140AB

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

Preview Lab → · Contrast checker → · Palette generator →

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