#3140B9#3140B9

#3140B9 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.189 H 270.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#3140B9
RGBrgb(49, 64, 185)
HSLhsl(233, 58%, 46%)
HSVhsv(233, 74%, 73%)
CMYKcmyk(73.5%, 65.4%, 0%, 27.5%)
CIE-LABlab(33.61, 35.98, -65.38)
CIE-LCHlch(33.61, 74.63, 298.83°)
OKLaboklab(44.21% 0.0026 -0.189)
OKLCHoklch(44.21% 0.189 270.8)
XYZxyz(11.8540, 7.8213, 46.7745)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B9 #B9AA31
analogous
#3184B9 #3140B9 #6631B9
triadic
#3140B9 #B93140 #40B931
tetradic
#3140B9 #B93184 #B9AA31 #31B966
square
#3140B9 #B93184 #B9AA31 #31B966
split-complementary
#3140B9 #B96631 #84B931
monochromatic
#171F58 #242F89 #3140B9 #5563D2 #868FDF

Accessibility & contrast

On white

8.19
#3140B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3140B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3140B9#FFFFFF#000000##FFFFFF
##3140B91.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3140b9;
/* rgb */ color: rgb(49, 64, 185);
/* oklch */ color: oklch(44.2% 0.189 270.8);
Tailwind
colors: {
  custom: {
    50: '#7d75cf',
    500: '#3140b9',
    950: '#000000',
  },
}
SCSS
$custom: #3140b9;
$custom-light: #7d75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b9",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 233.382,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44209,
    "c": 0.18903,
    "h": 270.8
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#3140B9
secondary
#C8C07D
accent
#D046E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3140B9

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

Preview Lab → · Contrast checker → · Palette generator →

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