#3142B1#3142B1

#3142B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.176 H 270.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#3142B1
RGBrgb(49, 66, 177)
HSLhsl(232, 57%, 44%)
HSVhsv(232, 72%, 69%)
CMYKcmyk(72.3%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.40, 31.83, -60.98)
CIE-LCHlch(33.40, 68.79, 297.56°)
OKLaboklab(43.84% 0.0016 -0.1761)
OKLCHoklch(43.84% 0.176 270.5)
XYZxyz(11.1479, 7.7226, 42.4895)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142B1 #B1A031
analogous
#3182B1 #3142B1 #6031B1
triadic
#3142B1 #B13142 #42B131
tetradic
#3142B1 #B13182 #B1A031 #31B160
square
#3142B1 #B13182 #B1A031 #31B160
split-complementary
#3142B1 #B16031 #82B131
monochromatic
#161E51 #243081 #3142B1 #5161CF #808DDC

Accessibility & contrast

On white

8.25
#3142B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3142B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142B1
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142B1#FFFFFF#000000##FFFFFF
##3142B11.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3142b1;
/* rgb */ color: rgb(49, 66, 177);
/* oklch */ color: oklch(43.8% 0.176 270.5);
Tailwind
colors: {
  custom: {
    50: '#7b76c9',
    500: '#3142b1',
    950: '#000000',
  },
}
SCSS
$custom: #3142b1;
$custom-light: #7b76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3142b1",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 232.031,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.17613,
    "h": 270.5
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#3142B1
secondary
#C5BB79
accent
#CC48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3142B1

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

Preview Lab → · Contrast checker → · Palette generator →

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