#3141A8#3141A8

#3141A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.165 H 270.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3141A8
RGBrgb(49, 65, 168)
HSLhsl(232, 55%, 43%)
HSVhsv(232, 71%, 66%)
CMYKcmyk(70.8%, 61.3%, 0%, 34.1%)
CIE-LABlab(32.39, 29.20, -57.26)
CIE-LCHlch(32.39, 64.27, 297.02°)
OKLaboklab(42.86% 0.0026 -0.1652)
OKLCHoklch(42.86% 0.165 270.9)
XYZxyz(10.2224, 7.2597, 37.9007)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3141A8 #A89831
analogous
#317CA8 #3141A8 #5D31A8
triadic
#3141A8 #A83141 #41A831
tetradic
#3141A8 #A8317C #A89831 #31A85D
square
#3141A8 #A8317C #A89831 #31A85D
split-complementary
#3141A8 #A85D31 #7CA831
monochromatic
#151C49 #232F79 #3141A8 #4C5DCB #7B88D8

Accessibility & contrast

On white

8.56
#3141A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3141A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3141A8
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3141A8#FFFFFF#000000##FFFFFF
##3141A81.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3141a8;
/* rgb */ color: rgb(49, 65, 168);
/* oklch */ color: oklch(42.9% 0.165 270.9);
Tailwind
colors: {
  custom: {
    50: '#7975c3',
    500: '#3141a8',
    950: '#000000',
  },
}
SCSS
$custom: #3141a8;
$custom-light: #7975c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3141a8",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 231.933,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.16522,
    "h": 270.9
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#3141A8
secondary
#C1B774
accent
#CA4ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3141A8

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

Preview Lab → · Contrast checker → · Palette generator →

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