#3140B5#3140B5

#3140B5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.184 H 270.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#3140B5
RGBrgb(49, 64, 181)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 73%, 71%)
CMYKcmyk(72.9%, 64.6%, 0%, 29%)
CIE-LABlab(33.25, 34.55, -63.59)
CIE-LCHlch(33.25, 72.37, 298.52°)
OKLaboklab(43.84% 0.0028 -0.1838)
OKLCHoklch(43.84% 0.184 270.9)
XYZxyz(11.4377, 7.6548, 44.5818)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B5 #B5A631
analogous
#3182B5 #3140B5 #6431B5
triadic
#3140B5 #B53140 #40B531
tetradic
#3140B5 #B53182 #B5A631 #31B564
square
#3140B5 #B53182 #B5A631 #31B564
split-complementary
#3140B5 #B56431 #82B531
monochromatic
#171E55 #242F85 #3140B5 #5361D0 #838DDD

Accessibility & contrast

On white

8.30
#3140B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3140B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140B5
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140B5#FFFFFF#000000##FFFFFF
##3140B51.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3140b5;
/* rgb */ color: rgb(49, 64, 181);
/* oklch */ color: oklch(43.8% 0.184 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c75cc',
    500: '#3140b5',
    950: '#000000',
  },
}
SCSS
$custom: #3140b5;
$custom-light: #7c75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b5",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 233.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.18381,
    "h": 270.9
  },
  "luminance": 0.07656
}

Semantic roles & 50–950 ramp

primary
#3140B5
secondary
#C7BE7B
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140B5

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

Preview Lab → · Contrast checker → · Palette generator →

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