#3142A2#3142A2

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

Color values

HEX#3142A2
RGBrgb(49, 66, 162)
HSLhsl(231, 54%, 41%)
HSVhsv(231, 70%, 64%)
CMYKcmyk(69.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.16, 26.34, -54.02)
CIE-LCHlch(32.16, 60.10, 295.99°)
OKLaboklab(42.54% 0.0018 -0.1557)
OKLCHoklch(42.54% 0.156 270.7)
XYZxyz(9.7342, 7.1571, 35.0439)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A2 #A29131
analogous
#317BA2 #3142A2 #5831A2
triadic
#3142A2 #A23142 #42A231
tetradic
#3142A2 #A2317B #A29131 #31A258
square
#3142A2 #A2317B #A29131 #31A258
split-complementary
#3142A2 #A25831 #7BA231
monochromatic
#151C44 #232F73 #3142A2 #485CC8 #7786D6

Accessibility & contrast

On white

8.64
#3142A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3142A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A2#FFFFFF#000000##FFFFFF
##3142A21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3142a2;
/* rgb */ color: rgb(49, 66, 162);
/* oklch */ color: oklch(42.5% 0.156 270.7);
Tailwind
colors: {
  custom: {
    50: '#7876be',
    500: '#3142a2',
    950: '#000000',
  },
}
SCSS
$custom: #3142a2;
$custom-light: #7876be;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a2",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 230.973,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42539,
    "c": 0.1557,
    "h": 270.7
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3142A2

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

Preview Lab → · Contrast checker → · Palette generator →

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