#3142B8#3142B8

#3142B8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.185 H 270.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#3142B8
RGBrgb(49, 66, 184)
HSLhsl(232, 58%, 46%)
HSVhsv(232, 73%, 72%)
CMYKcmyk(73.4%, 64.1%, 0%, 27.8%)
CIE-LABlab(34.00, 34.36, -64.14)
CIE-LCHlch(34.00, 72.76, 298.17°)
OKLaboklab(44.47% 0.0013 -0.1854)
OKLCHoklch(44.47% 0.185 270.4)
XYZxyz(11.8636, 8.0089, 46.2587)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142B8 #B8A731
analogous
#3186B8 #3142B8 #6331B8
triadic
#3142B8 #B83142 #42B831
tetradic
#3142B8 #B83186 #B8A731 #31B863
square
#3142B8 #B83186 #B8A731 #31B863
split-complementary
#3142B8 #B86331 #86B831
monochromatic
#171F57 #243188 #3142B8 #5564D2 #8590DE

Accessibility & contrast

On white

8.07
#3142B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3142B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142B8
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142B8#FFFFFF#000000##FFFFFF
##3142B81.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3142b8;
/* rgb */ color: rgb(49, 66, 184);
/* oklch */ color: oklch(44.5% 0.185 270.4);
Tailwind
colors: {
  custom: {
    50: '#7d76ce',
    500: '#3142b8',
    950: '#000000',
  },
}
SCSS
$custom: #3142b8;
$custom-light: #7d76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3142b8",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 232.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.18538,
    "h": 270.4
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#3142B8
secondary
#C8BE7D
accent
#CE47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3142B8

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

Preview Lab → · Contrast checker → · Palette generator →

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