#3140B4#3140B4

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

Color values

HEX#3140B4
RGBrgb(49, 64, 180)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 73%, 71%)
CMYKcmyk(72.8%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.17, 34.19, -63.14)
CIE-LCHlch(33.17, 71.81, 298.44°)
OKLaboklab(43.75% 0.0029 -0.1825)
OKLCHoklch(43.75% 0.182 270.9)
XYZxyz(11.3354, 7.6139, 44.0434)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B4 #B4A531
analogous
#3181B4 #3140B4 #6431B4
triadic
#3140B4 #B43140 #40B431
tetradic
#3140B4 #B43181 #B4A531 #31B464
square
#3140B4 #B43181 #B4A531 #31B464
split-complementary
#3140B4 #B46431 #81B431
monochromatic
#171E54 #242F84 #3140B4 #5261D0 #828DDD

Accessibility & contrast

On white

8.32
#3140B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3140B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3140B4#FFFFFF#000000##FFFFFF
##3140B41.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3140b4;
/* rgb */ color: rgb(49, 64, 180);
/* oklch */ color: oklch(43.7% 0.182 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c75cb',
    500: '#3140b4',
    950: '#000000',
  },
}
SCSS
$custom: #3140b4;
$custom-light: #7c75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b4",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 233.13,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.18249,
    "h": 270.9
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#3140B4
secondary
#C6BE7B
accent
#CF47E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140B4

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

Preview Lab → · Contrast checker → · Palette generator →

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