#3140B3#3140B3

#3140B3 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.181 H 270.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#3140B3
RGBrgb(49, 64, 179)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 73%, 70%)
CMYKcmyk(72.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.08, 33.83, -62.69)
CIE-LCHlch(33.08, 71.24, 298.35°)
OKLaboklab(43.66% 0.0029 -0.1812)
OKLCHoklch(43.66% 0.181 270.9)
XYZxyz(11.2339, 7.5733, 43.5088)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B3 #B3A431
analogous
#3181B3 #3140B3 #6331B3
triadic
#3140B3 #B33140 #40B331
tetradic
#3140B3 #B33181 #B3A431 #31B363
square
#3140B3 #B33181 #B3A431 #31B363
split-complementary
#3140B3 #B36331 #81B331
monochromatic
#171E53 #242F83 #3140B3 #5260D0 #828CDD

Accessibility & contrast

On white

8.35
#3140B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3140B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3140B3#FFFFFF#000000##FFFFFF
##3140B31.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3140b3;
/* rgb */ color: rgb(49, 64, 179);
/* oklch */ color: oklch(43.7% 0.181 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c75cb',
    500: '#3140b3',
    950: '#000000',
  },
}
SCSS
$custom: #3140b3;
$custom-light: #7c75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b3",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 233.077,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43658,
    "c": 0.18118,
    "h": 270.9
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#3140B3
secondary
#C6BD7A
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140B3

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

Preview Lab → · Contrast checker → · Palette generator →

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