#3140AE#3140AE

#3140AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.175 H 271.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#3140AE
RGBrgb(49, 64, 174)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 68%)
CMYKcmyk(71.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.65, 32.03, -60.43)
CIE-LCHlch(32.65, 68.39, 297.93°)
OKLaboklab(43.21% 0.0031 -0.1745)
OKLCHoklch(43.21% 0.175 271)
XYZxyz(10.7374, 7.3747, 40.8938)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AE #AE9F31
analogous
#317EAE #3140AE #6031AE
triadic
#3140AE #AE3140 #40AE31
tetradic
#3140AE #AE317E #AE9F31 #31AE60
square
#3140AE #AE317E #AE9F31 #31AE60
split-complementary
#3140AE #AE6031 #7EAE31
monochromatic
#161D4E #242E7E #3140AE #4F5ECD #7F8ADB

Accessibility & contrast

On white

8.48
#3140AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3140AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140AE
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140AE#FFFFFF#000000##FFFFFF
##3140AE1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3140ae;
/* rgb */ color: rgb(49, 64, 174);
/* oklch */ color: oklch(43.2% 0.175 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b74c7',
    500: '#3140ae',
    950: '#000000',
  },
}
SCSS
$custom: #3140ae;
$custom-light: #7b74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3140ae",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 232.8,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43206,
    "c": 0.17454,
    "h": 271
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#3140AE
secondary
#C4BB77
accent
#CD48DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140AE

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

Preview Lab → · Contrast checker → · Palette generator →

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