#3142AC#3142AC

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

Color values

HEX#3142AC
RGBrgb(49, 66, 172)
HSLhsl(232, 56%, 43%)
HSVhsv(232, 72%, 67%)
CMYKcmyk(71.5%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.98, 30.01, -58.69)
CIE-LCHlch(32.98, 65.92, 297.08°)
OKLaboklab(43.4% 0.0017 -0.1694)
OKLCHoklch(43.4% 0.169 270.6)
XYZxyz(10.6587, 7.5269, 39.9128)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142AC #AC9B31
analogous
#317FAC #3142AC #5D31AC
triadic
#3142AC #AC3142 #42AC31
tetradic
#3142AC #AC317F #AC9B31 #31AC5D
square
#3142AC #AC317F #AC9B31 #31AC5D
split-complementary
#3142AC #AC5D31 #7FAC31
monochromatic
#161D4D #23307C #3142AC #4E5FCC #7D8ADA

Accessibility & contrast

On white

8.38
#3142AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3142AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142AC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142AC#FFFFFF#000000##FFFFFF
##3142AC1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3142ac;
/* rgb */ color: rgb(49, 66, 172);
/* oklch */ color: oklch(43.4% 0.169 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a76c6',
    500: '#3142ac',
    950: '#000000',
  },
}
SCSS
$custom: #3142ac;
$custom-light: #7a76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3142ac",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 231.707,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43399,
    "c": 0.16941,
    "h": 270.6
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3142AC

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

Preview Lab → · Contrast checker → · Palette generator →

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