#3141B2#3141B2

#3141B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.179 H 270.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#3141B2
RGBrgb(49, 65, 178)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(72.5%, 63.5%, 0%, 30.2%)
CIE-LABlab(33.24, 32.83, -61.84)
CIE-LCHlch(33.24, 70.02, 297.96°)
OKLaboklab(43.75% 0.0023 -0.1786)
OKLCHoklch(43.75% 0.179 270.7)
XYZxyz(11.1901, 7.6468, 42.9971)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141B2 #B2A231
analogous
#3182B2 #3141B2 #6231B2
triadic
#3141B2 #B23141 #41B231
tetradic
#3141B2 #B23182 #B2A231 #31B262
square
#3141B2 #B23182 #B2A231 #31B262
split-complementary
#3141B2 #B26231 #82B231
monochromatic
#171E52 #242F82 #3141B2 #5161CF #818CDC

Accessibility & contrast

On white

8.30
#3141B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3141B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141B2
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141B2#FFFFFF#000000##FFFFFF
##3141B21.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3141b2;
/* rgb */ color: rgb(49, 65, 178);
/* oklch */ color: oklch(43.7% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b75ca',
    500: '#3141b2',
    950: '#000000',
  },
}
SCSS
$custom: #3141b2;
$custom-light: #7b75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3141b2",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 232.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43748,
    "c": 0.17866,
    "h": 270.7
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#3141B2
secondary
#C5BC79
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3141B2

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

Preview Lab → · Contrast checker → · Palette generator →

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