#3140B2#3140B2

#3140B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.180 H 270.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#3140B2
RGBrgb(49, 64, 178)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(72.5%, 64%, 0%, 30.2%)
CIE-LABlab(32.99, 33.47, -62.24)
CIE-LCHlch(32.99, 70.67, 298.27°)
OKLaboklab(43.57% 0.003 -0.1798)
OKLCHoklch(43.57% 0.18 270.9)
XYZxyz(11.1332, 7.5330, 42.9781)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B2 #B2A331
analogous
#3181B2 #3140B2 #6231B2
triadic
#3140B2 #B23140 #40B231
tetradic
#3140B2 #B23181 #B2A331 #31B262
square
#3140B2 #B23181 #B2A331 #31B262
split-complementary
#3140B2 #B26231 #81B231
monochromatic
#171D52 #242F82 #3140B2 #5160CF #818CDC

Accessibility & contrast

On white

8.38
#3140B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3140B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140B2
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140B2#FFFFFF#000000##FFFFFF
##3140B21.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3140b2;
/* rgb */ color: rgb(49, 64, 178);
/* oklch */ color: oklch(43.6% 0.180 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c75ca',
    500: '#3140b2',
    950: '#000000',
  },
}
SCSS
$custom: #3140b2;
$custom-light: #7c75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b2",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 233.023,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43567,
    "c": 0.17985,
    "h": 270.9
  },
  "luminance": 0.07534
}

Semantic roles & 50–950 ramp

primary
#3140B2
secondary
#C5BD79
accent
#CE48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3140B2

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

Preview Lab → · Contrast checker → · Palette generator →

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