#3140AD#3140AD

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

Color values

HEX#3140AD
RGBrgb(49, 64, 173)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 68%)
CMYKcmyk(71.7%, 63%, 0%, 32.2%)
CIE-LABlab(32.56, 31.67, -59.97)
CIE-LCHlch(32.56, 67.82, 297.84°)
OKLaboklab(43.12% 0.0032 -0.1732)
OKLCHoklch(43.12% 0.173 271.1)
XYZxyz(10.6403, 7.3358, 40.3823)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140AD #AD9E31
analogous
#317EAD #3140AD #6031AD
triadic
#3140AD #AD3140 #40AD31
tetradic
#3140AD #AD317E #AD9E31 #31AD60
square
#3140AD #AD317E #AD9E31 #31AD60
split-complementary
#3140AD #AD6031 #7EAD31
monochromatic
#161D4E #232E7D #3140AD #4E5ECD #7E89DA

Accessibility & contrast

On white

8.51
#3140AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3140AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3140AD#FFFFFF#000000##FFFFFF
##3140AD1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3140ad;
/* rgb */ color: rgb(49, 64, 173);
/* oklch */ color: oklch(43.1% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c6',
    500: '#3140ad',
    950: '#000000',
  },
}
SCSS
$custom: #3140ad;
$custom-light: #7a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3140ad",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 232.742,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.1732,
    "h": 271.1
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3140AD

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

Preview Lab → · Contrast checker → · Palette generator →

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