#3142AB#3142AB

#3142AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.168 H 270.6°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#3142AB
RGBrgb(49, 66, 171)
HSLhsl(232, 55%, 43%)
HSVhsv(232, 71%, 67%)
CMYKcmyk(71.3%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.89, 29.64, -58.23)
CIE-LCHlch(32.89, 65.34, 296.98°)
OKLaboklab(43.31% 0.0018 -0.168)
OKLCHoklch(43.31% 0.168 270.6)
XYZxyz(10.5630, 7.4886, 39.4089)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142AB #AB9A31
analogous
#317FAB #3142AB #5D31AB
triadic
#3142AB #AB3142 #42AB31
tetradic
#3142AB #AB317F #AB9A31 #31AB5D
square
#3142AB #AB317F #AB9A31 #31AB5D
split-complementary
#3142AB #AB5D31 #7FAB31
monochromatic
#161D4C #23307B #3142AB #4D5FCC #7D8ADA

Accessibility & contrast

On white

8.41
#3142AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3142AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142AB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142AB#FFFFFF#000000##FFFFFF
##3142AB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3142ab;
/* rgb */ color: rgb(49, 66, 171);
/* oklch */ color: oklch(43.3% 0.168 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a76c5',
    500: '#3142ab',
    950: '#000000',
  },
}
SCSS
$custom: #3142ab;
$custom-light: #7a76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3142ab",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 231.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43312,
    "c": 0.16806,
    "h": 270.6
  },
  "luminance": 0.0749
}

Semantic roles & 50–950 ramp

primary
#3142AB
secondary
#C2B875
accent
#CA49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3142AB

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

Preview Lab → · Contrast checker → · Palette generator →

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