#3142A3#3142A3

#3142A3 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.6% C 0.157 H 270.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#3142A3
RGBrgb(49, 66, 163)
HSLhsl(231, 54%, 42%)
HSVhsv(231, 70%, 64%)
CMYKcmyk(69.9%, 59.5%, 0%, 36.1%)
CIE-LABlab(32.24, 26.71, -54.50)
CIE-LCHlch(32.24, 60.69, 296.11°)
OKLaboklab(42.62% 0.0018 -0.1571)
OKLCHoklch(42.62% 0.157 270.7)
XYZxyz(9.8235, 7.1928, 35.5139)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A3 #A39231
analogous
#317BA3 #3142A3 #5931A3
triadic
#3142A3 #A33142 #42A331
tetradic
#3142A3 #A3317B #A39231 #31A359
square
#3142A3 #A3317B #A39231 #31A359
split-complementary
#3142A3 #A35931 #7BA331
monochromatic
#151C45 #232F74 #3142A3 #495CC8 #7886D6

Accessibility & contrast

On white

8.61
#3142A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3142A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A3
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A3#FFFFFF#000000##FFFFFF
##3142A31.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3142a3;
/* rgb */ color: rgb(49, 66, 163);
/* oklch */ color: oklch(42.6% 0.157 270.7);
Tailwind
colors: {
  custom: {
    50: '#7876bf',
    500: '#3142a3',
    950: '#000000',
  },
}
SCSS
$custom: #3142a3;
$custom-light: #7876bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a3",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 231.053,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.15709,
    "h": 270.7
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3142A3

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

Preview Lab → · Contrast checker → · Palette generator →

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