#3140AF#3140AF

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

Color values

HEX#3140AF
RGBrgb(49, 64, 175)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 69%)
CMYKcmyk(72%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.73, 32.39, -60.88)
CIE-LCHlch(32.73, 68.96, 298.01°)
OKLaboklab(43.3% 0.0031 -0.1758)
OKLCHoklch(43.3% 0.176 271)
XYZxyz(10.8353, 7.4138, 41.4091)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AF #AFA031
analogous
#317FAF #3140AF #6131AF
triadic
#3140AF #AF3140 #40AF31
tetradic
#3140AF #AF317F #AFA031 #31AF61
square
#3140AF #AF317F #AFA031 #31AF61
split-complementary
#3140AF #AF6131 #7FAF31
monochromatic
#161D4F #242F7F #3140AF #4F5ECE #7F8ADB

Accessibility & contrast

On white

8.46
#3140AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3140AF#FFFFFF#000000##FFFFFF
##3140AF1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3140af;
/* rgb */ color: rgb(49, 64, 175);
/* oklch */ color: oklch(43.3% 0.176 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b75c8',
    500: '#3140af',
    950: '#000000',
  },
}
SCSS
$custom: #3140af;
$custom-light: #7b75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3140af",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 232.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43296,
    "c": 0.17588,
    "h": 271
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#3140AF
secondary
#C4BB78
accent
#CE48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140AF

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

Preview Lab → · Contrast checker → · Palette generator →

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