#3142A6#3142A6

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

Color values

HEX#3142A6
RGBrgb(49, 66, 166)
HSLhsl(231, 54%, 42%)
HSVhsv(231, 70%, 65%)
CMYKcmyk(70.5%, 60.2%, 0%, 34.9%)
CIE-LABlab(32.48, 27.81, -55.90)
CIE-LCHlch(32.48, 62.44, 296.45°)
OKLaboklab(42.88% 0.0018 -0.1612)
OKLCHoklch(42.88% 0.161 270.6)
XYZxyz(10.0954, 7.3016, 36.9463)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A6 #A69531
analogous
#317DA6 #3142A6 #5B31A6
triadic
#3142A6 #A63142 #42A631
tetradic
#3142A6 #A6317D #A69531 #31A65B
square
#3142A6 #A6317D #A69531 #31A65B
split-complementary
#3142A6 #A65B31 #7DA631
monochromatic
#151C47 #232F77 #3142A6 #4A5DCA #7A87D8

Accessibility & contrast

On white

8.53
#3142A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3142A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A6
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A6#FFFFFF#000000##FFFFFF
##3142A61.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3142a6;
/* rgb */ color: rgb(49, 66, 166);
/* oklch */ color: oklch(42.9% 0.161 270.6);
Tailwind
colors: {
  custom: {
    50: '#7976c1',
    500: '#3142a6',
    950: '#000000',
  },
}
SCSS
$custom: #3142a6;
$custom-light: #7976c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a6",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 231.282,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.16123,
    "h": 270.6
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

primary
#3142A6
secondary
#C0B573
accent
#C84ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3142A6

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

Preview Lab → · Contrast checker → · Palette generator →

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