#3140B6#3140B6

#3140B6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.185 H 270.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#3140B6
RGBrgb(49, 64, 182)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 73%, 71%)
CMYKcmyk(73.1%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.34, 34.91, -64.04)
CIE-LCHlch(33.34, 72.94, 298.60°)
OKLaboklab(43.93% 0.0027 -0.1851)
OKLCHoklch(43.93% 0.185 270.8)
XYZxyz(11.5406, 7.6960, 45.1242)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B6 #B6A731
analogous
#3182B6 #3140B6 #6431B6
triadic
#3140B6 #B63140 #40B631
tetradic
#3140B6 #B63182 #B6A731 #31B664
square
#3140B6 #B63182 #B6A731 #31B664
split-complementary
#3140B6 #B66431 #82B631
monochromatic
#171E56 #242F86 #3140B6 #5362D1 #848EDE

Accessibility & contrast

On white

8.27
#3140B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3140B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140B6
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140B6#FFFFFF#000000##FFFFFF
##3140B61.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3140b6;
/* rgb */ color: rgb(49, 64, 182);
/* oklch */ color: oklch(43.9% 0.185 270.8);
Tailwind
colors: {
  custom: {
    50: '#7c75cd',
    500: '#3140b6',
    950: '#000000',
  },
}
SCSS
$custom: #3140b6;
$custom-light: #7c75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b6",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 233.233,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43933,
    "c": 0.18512,
    "h": 270.8
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#3140B6
secondary
#C7BF7C
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3140B6

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

Preview Lab → · Contrast checker → · Palette generator →

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