#3142C2#3142C2

#3142C2 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.198 H 270.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#3142C2
RGBrgb(49, 66, 194)
HSLhsl(233, 60%, 48%)
HSVhsv(233, 75%, 76%)
CMYKcmyk(74.7%, 66%, 0%, 23.9%)
CIE-LABlab(34.89, 37.93, -68.57)
CIE-LCHlch(34.89, 78.36, 298.95°)
OKLaboklab(45.39% 0.0007 -0.1983)
OKLCHoklch(45.39% 0.198 270.2)
XYZxyz(12.9491, 8.4431, 51.9757)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142C2 #C2B131
analogous
#318AC2 #3142C2 #6931C2
triadic
#3142C2 #C23142 #42C231
tetradic
#3142C2 #C2318A #C2B131 #31C269
square
#3142C2 #C2318A #C2B131 #31C269
split-complementary
#3142C2 #C26931 #8AC231
monochromatic
#182160 #253191 #3142C2 #5B69D6 #8C96E2

Accessibility & contrast

On white

7.81
#3142C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3142C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142C2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142C2#FFFFFF#000000##FFFFFF
##3142C21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004BC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3142c2;
/* rgb */ color: rgb(49, 66, 194);
/* oklch */ color: oklch(45.4% 0.198 270.2);
Tailwind
colors: {
  custom: {
    50: '#7f76d6',
    500: '#3142c2',
    950: '#000000',
  },
}
SCSS
$custom: #3142c2;
$custom-light: #7f76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3142c2",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 232.966,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.19833,
    "h": 270.2
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#3142C2
secondary
#CCC383
accent
#D045E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3142C2

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

Preview Lab → · Contrast checker → · Palette generator →

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