#3142BA#3142BA

#3142BA is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.188 H 270.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3142BA
RGBrgb(49, 66, 186)
HSLhsl(233, 58%, 46%)
HSVhsv(233, 74%, 73%)
CMYKcmyk(73.7%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.18, 35.07, -65.04)
CIE-LCHlch(34.18, 73.89, 298.34°)
OKLaboklab(44.65% 0.0012 -0.188)
OKLCHoklch(44.65% 0.188 270.4)
XYZxyz(12.0747, 8.0933, 47.3707)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142BA #BAA931
analogous
#3186BA #3142BA #6431BA
triadic
#3142BA #BA3142 #42BA31
tetradic
#3142BA #BA3186 #BAA931 #31BA64
square
#3142BA #BA3186 #BAA931 #31BA64
split-complementary
#3142BA #BA6431 #86BA31
monochromatic
#172059 #24318A #3142BA #5665D2 #8691DF

Accessibility & contrast

On white

8.02
#3142BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3142BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142BA
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142BA#FFFFFF#000000##FFFFFF
##3142BA1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3142ba;
/* rgb */ color: rgb(49, 66, 186);
/* oklch */ color: oklch(44.7% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#7d76d0',
    500: '#3142ba',
    950: '#000000',
  },
}
SCSS
$custom: #3142ba;
$custom-light: #7d76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3142ba",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 232.555,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.188,
    "h": 270.4
  },
  "luminance": 0.08095
}

Semantic roles & 50–950 ramp

primary
#3142BA
secondary
#C9C07E
accent
#CE46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3142BA

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

Preview Lab → · Contrast checker → · Palette generator →

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