#3140C2#3140C2

#3140C2 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.1% C 0.201 H 270.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#3140C2
RGBrgb(49, 64, 194)
HSLhsl(234, 60%, 48%)
HSVhsv(234, 75%, 76%)
CMYKcmyk(74.7%, 67%, 0%, 23.9%)
CIE-LABlab(34.42, 39.17, -69.33)
CIE-LCHlch(34.42, 79.63, 299.47°)
OKLaboklab(45.05% 0.0019 -0.2006)
OKLCHoklch(45.05% 0.201 270.5)
XYZxyz(12.8343, 8.2134, 51.9374)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140C2 #C2B331
analogous
#3189C2 #3140C2 #6A31C2
triadic
#3140C2 #C23140 #40C231
tetradic
#3140C2 #C23189 #C2B331 #31C26A
square
#3140C2 #C23189 #C2B331 #31C26A
split-complementary
#3140C2 #C26A31 #89C231
monochromatic
#182060 #253091 #3140C2 #5B67D6 #8C94E2

Accessibility & contrast

On white

7.95
#3140C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3140C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140C2
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140C2#FFFFFF#000000##FFFFFF
##3140C21.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3140c2;
/* rgb */ color: rgb(49, 64, 194);
/* oklch */ color: oklch(45.1% 0.201 270.5);
Tailwind
colors: {
  custom: {
    50: '#7f75d6',
    500: '#3140c2',
    950: '#000000',
  },
}
SCSS
$custom: #3140c2;
$custom-light: #7f75d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3140c2",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 233.793,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.20059,
    "h": 270.5
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#3140C2
secondary
#CCC483
accent
#D345E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3140C2

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

Preview Lab → · Contrast checker → · Palette generator →

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