#3140AA#3140AA

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

Color values

HEX#3140AA
RGBrgb(49, 64, 170)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 67%)
CMYKcmyk(71.2%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.30, 30.58, -58.59)
CIE-LCHlch(32.30, 66.09, 297.56°)
OKLaboklab(42.85% 0.0033 -0.1691)
OKLCHoklch(42.85% 0.169 271.1)
XYZxyz(10.3533, 7.2210, 38.8706)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AA #AA9B31
analogous
#317CAA #3140AA #5E31AA
triadic
#3140AA #AA3140 #40AA31
tetradic
#3140AA #AA317C #AA9B31 #31AA5E
square
#3140AA #AA317C #AA9B31 #31AA5E
split-complementary
#3140AA #AA5E31 #7CAA31
monochromatic
#161C4B #232E7A #3140AA #4D5CCC #7C88D9

Accessibility & contrast

On white

8.59
#3140AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3140AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3140AA#FFFFFF#000000##FFFFFF
##3140AA1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3140aa;
/* rgb */ color: rgb(49, 64, 170);
/* oklch */ color: oklch(42.9% 0.169 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c4',
    500: '#3140aa',
    950: '#000000',
  },
}
SCSS
$custom: #3140aa;
$custom-light: #7a74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3140aa",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 232.562,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.16917,
    "h": 271.1
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3140AA

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

Preview Lab → · Contrast checker → · Palette generator →

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