#3140AC#3140AC

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

Color values

HEX#3140AC
RGBrgb(49, 64, 172)
HSLhsl(233, 56%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(71.5%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.47, 31.31, -59.51)
CIE-LCHlch(32.47, 67.24, 297.75°)
OKLaboklab(43.03% 0.0032 -0.1718)
OKLCHoklch(43.03% 0.172 271.1)
XYZxyz(10.5439, 7.2973, 39.8746)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AC #AC9D31
analogous
#317DAC #3140AC #5F31AC
triadic
#3140AC #AC3140 #40AC31
tetradic
#3140AC #AC317D #AC9D31 #31AC5F
square
#3140AC #AC317D #AC9D31 #31AC5F
split-complementary
#3140AC #AC5F31 #7DAC31
monochromatic
#161D4D #232E7C #3140AC #4E5DCC #7D89DA

Accessibility & contrast

On white

8.54
#3140AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3140AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140AC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140AC#FFFFFF#000000##FFFFFF
##3140AC1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3140ac;
/* rgb */ color: rgb(49, 64, 172);
/* oklch */ color: oklch(43.0% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c6',
    500: '#3140ac',
    950: '#000000',
  },
}
SCSS
$custom: #3140ac;
$custom-light: #7a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3140ac",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 232.683,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43028,
    "c": 0.17186,
    "h": 271.1
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#3140AC
secondary
#C3B976
accent
#CD49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140AC

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

Preview Lab → · Contrast checker → · Palette generator →

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