#3142BC#3142BC

#3142BC is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.191 H 270.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#3142BC
RGBrgb(49, 66, 188)
HSLhsl(233, 59%, 46%)
HSVhsv(233, 74%, 74%)
CMYKcmyk(73.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.35, 35.79, -65.92)
CIE-LCHlch(34.35, 75.01, 298.50°)
OKLaboklab(44.84% 0.0011 -0.1906)
OKLCHoklch(44.84% 0.191 270.3)
XYZxyz(12.2888, 8.1789, 48.4982)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142BC #BCAB31
analogous
#3188BC #3142BC #6631BC
triadic
#3142BC #BC3142 #42BC31
tetradic
#3142BC #BC3188 #BCAB31 #31BC66
square
#3142BC #BC3188 #BCAB31 #31BC66
split-complementary
#3142BC #BC6631 #88BC31
monochromatic
#18205B #24318B #3142BC #5766D3 #8892E0

Accessibility & contrast

On white

7.97
#3142BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3142BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142BC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142BC#FFFFFF#000000##FFFFFF
##3142BC1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3142bc;
/* rgb */ color: rgb(49, 66, 188);
/* oklch */ color: oklch(44.8% 0.191 270.3);
Tailwind
colors: {
  custom: {
    50: '#7e76d1',
    500: '#3142bc',
    950: '#000000',
  },
}
SCSS
$custom: #3142bc;
$custom-light: #7e76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3142bc",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 232.662,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44836,
    "c": 0.1906,
    "h": 270.3
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#3142BC
secondary
#CAC07F
accent
#CF46E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #3142BC

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

Preview Lab → · Contrast checker → · Palette generator →

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