#3142A5#3142A5

#3142A5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.160 H 270.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3142A5
RGBrgb(49, 66, 165)
HSLhsl(231, 54%, 42%)
HSVhsv(231, 70%, 65%)
CMYKcmyk(70.3%, 60%, 0%, 35.3%)
CIE-LABlab(32.40, 27.44, -55.44)
CIE-LCHlch(32.40, 61.86, 296.34°)
OKLaboklab(42.79% 0.0018 -0.1598)
OKLCHoklch(42.79% 0.16 270.6)
XYZxyz(10.0041, 7.2650, 36.4651)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A5 #A59431
analogous
#317CA5 #3142A5 #5A31A5
triadic
#3142A5 #A53142 #42A531
tetradic
#3142A5 #A5317C #A59431 #31A55A
square
#3142A5 #A5317C #A59431 #31A55A
split-complementary
#3142A5 #A55A31 #7CA531
monochromatic
#151C47 #232F76 #3142A5 #4A5DC9 #7987D7

Accessibility & contrast

On white

8.56
#3142A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3142A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A5
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A5#FFFFFF#000000##FFFFFF
##3142A51.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3142a5;
/* rgb */ color: rgb(49, 66, 165);
/* oklch */ color: oklch(42.8% 0.160 270.6);
Tailwind
colors: {
  custom: {
    50: '#7876c0',
    500: '#3142a5',
    950: '#000000',
  },
}
SCSS
$custom: #3142a5;
$custom-light: #7876c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a5",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 231.207,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42794,
    "c": 0.15985,
    "h": 270.6
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#3142A5
secondary
#C0B472
accent
#C84ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3142A5

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

Preview Lab → · Contrast checker → · Palette generator →

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