#3142B2#3142B2

#3142B2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.177 H 270.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3142B2
RGBrgb(49, 66, 178)
HSLhsl(232, 57%, 45%)
HSVhsv(232, 72%, 70%)
CMYKcmyk(72.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.48, 32.19, -61.44)
CIE-LCHlch(33.48, 69.36, 297.65°)
OKLaboklab(43.93% 0.0016 -0.1774)
OKLCHoklch(43.93% 0.177 270.5)
XYZxyz(11.2480, 7.7626, 43.0164)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142B2 #B2A131
analogous
#3183B2 #3142B2 #6131B2
triadic
#3142B2 #B23142 #42B231
tetradic
#3142B2 #B23183 #B2A131 #31B261
square
#3142B2 #B23183 #B2A131 #31B261
split-complementary
#3142B2 #B26131 #83B231
monochromatic
#171E52 #243082 #3142B2 #5162CF #818DDC

Accessibility & contrast

On white

8.23
#3142B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3142B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142B2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142B2#FFFFFF#000000##FFFFFF
##3142B21.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3142b2;
/* rgb */ color: rgb(49, 66, 178);
/* oklch */ color: oklch(43.9% 0.177 270.5);
Tailwind
colors: {
  custom: {
    50: '#7b76ca',
    500: '#3142b2',
    950: '#000000',
  },
}
SCSS
$custom: #3142b2;
$custom-light: #7b76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3142b2",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 232.093,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4393,
    "c": 0.17746,
    "h": 270.5
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#3142B2
secondary
#C5BB79
accent
#CC48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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