#3142B4#3142B4

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

Color values

HEX#3142B4
RGBrgb(49, 66, 180)
HSLhsl(232, 57%, 45%)
HSVhsv(232, 73%, 71%)
CMYKcmyk(72.8%, 63.3%, 0%, 29.4%)
CIE-LABlab(33.65, 32.91, -62.34)
CIE-LCHlch(33.65, 70.50, 297.83°)
OKLaboklab(44.11% 0.0015 -0.1801)
OKLCHoklch(44.11% 0.18 270.5)
XYZxyz(11.4502, 7.8435, 44.0817)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142B4 #B4A331
analogous
#3183B4 #3142B4 #6231B4
triadic
#3142B4 #B43142 #42B431
tetradic
#3142B4 #B43183 #B4A331 #31B462
square
#3142B4 #B43183 #B4A331 #31B462
split-complementary
#3142B4 #B46231 #83B431
monochromatic
#171F54 #243084 #3142B4 #5263D0 #828EDD

Accessibility & contrast

On white

8.17
#3142B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3142B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142B4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142B4#FFFFFF#000000##FFFFFF
##3142B41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3142b4;
/* rgb */ color: rgb(49, 66, 180);
/* oklch */ color: oklch(44.1% 0.180 270.5);
Tailwind
colors: {
  custom: {
    50: '#7c76cb',
    500: '#3142b4',
    950: '#000000',
  },
}
SCSS
$custom: #3142b4;
$custom-light: #7c76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3142b4",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 232.214,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44109,
    "c": 0.18012,
    "h": 270.5
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#3142B4
secondary
#C6BC7B
accent
#CD47E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3142B4

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

Preview Lab → · Contrast checker → · Palette generator →

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