#3140BC#3140BC

#3140BC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.193 H 270.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#3140BC
RGBrgb(49, 64, 188)
HSLhsl(234, 59%, 46%)
HSVhsv(234, 74%, 74%)
CMYKcmyk(73.9%, 66%, 0%, 26.3%)
CIE-LABlab(33.88, 37.05, -66.70)
CIE-LCHlch(33.88, 76.30, 299.05°)
OKLaboklab(44.49% 0.0023 -0.1929)
OKLCHoklch(44.49% 0.193 270.7)
XYZxyz(12.1740, 7.9493, 48.4600)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140BC #BCAD31
analogous
#3186BC #3140BC #6831BC
triadic
#3140BC #BC3140 #40BC31
tetradic
#3140BC #BC3186 #BCAD31 #31BC68
square
#3140BC #BC3186 #BCAD31 #31BC68
split-complementary
#3140BC #BC6831 #86BC31
monochromatic
#181F5B #242F8B #3140BC #5764D3 #8891E0

Accessibility & contrast

On white

8.11
#3140BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3140BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140BC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140BC#FFFFFF#000000##FFFFFF
##3140BC1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3140bc;
/* rgb */ color: rgb(49, 64, 188);
/* oklch */ color: oklch(44.5% 0.193 270.7);
Tailwind
colors: {
  custom: {
    50: '#7e75d1',
    500: '#3140bc',
    950: '#000000',
  },
}
SCSS
$custom: #3140bc;
$custom-light: #7e75d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3140bc",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 233.525,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44488,
    "c": 0.19291,
    "h": 270.7
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#3140BC
secondary
#CAC27F
accent
#D146E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #3140BC

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

Preview Lab → · Contrast checker → · Palette generator →

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