#3140A8#3140A8

#3140A8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.166 H 271.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#3140A8
RGBrgb(49, 64, 168)
HSLhsl(232, 55%, 43%)
HSVhsv(232, 71%, 66%)
CMYKcmyk(70.8%, 61.9%, 0%, 34.1%)
CIE-LABlab(32.14, 29.85, -57.67)
CIE-LCHlch(32.14, 64.94, 297.37°)
OKLaboklab(42.67% 0.0033 -0.1664)
OKLCHoklch(42.67% 0.166 271.1)
XYZxyz(10.1655, 7.1459, 37.8818)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140A8 #A89931
analogous
#317BA8 #3140A8 #5D31A8
triadic
#3140A8 #A83140 #40A831
tetradic
#3140A8 #A8317B #A89931 #31A85D
square
#3140A8 #A8317B #A89931 #31A85D
split-complementary
#3140A8 #A85D31 #7BA831
monochromatic
#151C49 #232E79 #3140A8 #4C5CCB #7B87D8

Accessibility & contrast

On white

8.64
#3140A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3140A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140A8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140A8#FFFFFF#000000##FFFFFF
##3140A81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3140a8;
/* rgb */ color: rgb(49, 64, 168);
/* oklch */ color: oklch(42.7% 0.166 271.1);
Tailwind
colors: {
  custom: {
    50: '#7974c3',
    500: '#3140a8',
    950: '#000000',
  },
}
SCSS
$custom: #3140a8;
$custom-light: #7974c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3140a8",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 232.437,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.16646,
    "h": 271.1
  },
  "luminance": 0.07147
}

Semantic roles & 50–950 ramp

primary
#3140A8
secondary
#C1B774
accent
#CB4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3140A8

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

Preview Lab → · Contrast checker → · Palette generator →

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