#3142A1#3142A1

#3142A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.154 H 270.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3142A1
RGBrgb(49, 66, 161)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 70%, 63%)
CMYKcmyk(69.6%, 59%, 0%, 36.9%)
CIE-LABlab(32.08, 25.97, -53.55)
CIE-LCHlch(32.08, 59.51, 295.87°)
OKLaboklab(42.46% 0.0018 -0.1543)
OKLCHoklch(42.46% 0.154 270.7)
XYZxyz(9.6457, 7.1217, 34.5776)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A1 #A19031
analogous
#317AA1 #3142A1 #5831A1
triadic
#3142A1 #A13142 #42A131
tetradic
#3142A1 #A1317A #A19031 #31A158
square
#3142A1 #A1317A #A19031 #31A158
split-complementary
#3142A1 #A15831 #7AA131
monochromatic
#141C43 #232F72 #3142A1 #485BC7 #7785D6

Accessibility & contrast

On white

8.66
#3142A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3142A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A1
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A1#FFFFFF#000000##FFFFFF
##3142A11.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3142a1;
/* rgb */ color: rgb(49, 66, 161);
/* oklch */ color: oklch(42.5% 0.154 270.7);
Tailwind
colors: {
  custom: {
    50: '#7876be',
    500: '#3142a1',
    950: '#000000',
  },
}
SCSS
$custom: #3142a1;
$custom-light: #7876be;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a1",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 230.893,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42455,
    "c": 0.15431,
    "h": 270.7
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#3142A1
secondary
#BEB270
accent
#C74BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3142A1

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

Preview Lab → · Contrast checker → · Palette generator →

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