#3142A8#3142A8

#3142A8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.164 H 270.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#3142A8
RGBrgb(49, 66, 168)
HSLhsl(231, 55%, 43%)
HSVhsv(231, 71%, 66%)
CMYKcmyk(70.8%, 60.7%, 0%, 34.1%)
CIE-LABlab(32.65, 28.54, -56.84)
CIE-LCHlch(32.65, 63.60, 296.66°)
OKLaboklab(43.05% 0.0018 -0.164)
OKLCHoklch(43.05% 0.164 270.6)
XYZxyz(10.2803, 7.3755, 37.9200)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3142A8 #A89731
analogous
#317DA8 #3142A8 #5C31A8
triadic
#3142A8 #A83142 #42A831
tetradic
#3142A8 #A8317D #A89731 #31A85C
square
#3142A8 #A8317D #A89731 #31A85C
split-complementary
#3142A8 #A85C31 #7DA831
monochromatic
#151D49 #232F79 #3142A8 #4C5ECB #7B88D8

Accessibility & contrast

On white

8.48
#3142A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3142A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3142A8
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3142A8#FFFFFF#000000##FFFFFF
##3142A81.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3142a8;
/* rgb */ color: rgb(49, 66, 168);
/* oklch */ color: oklch(43.1% 0.164 270.6);
Tailwind
colors: {
  custom: {
    50: '#7976c3',
    500: '#3142a8',
    950: '#000000',
  },
}
SCSS
$custom: #3142a8;
$custom-light: #7976c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3142a8",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 231.429,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43051,
    "c": 0.16397,
    "h": 270.6
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#3142A8
secondary
#C1B674
accent
#C94ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3142A8

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

Preview Lab → · Contrast checker → · Palette generator →

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