#3140B8#3140B8

#3140B8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.188 H 270.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#3140B8
RGBrgb(49, 64, 184)
HSLhsl(233, 58%, 46%)
HSVhsv(233, 73%, 72%)
CMYKcmyk(73.4%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.52, 35.63, -64.93)
CIE-LCHlch(33.52, 74.06, 298.75°)
OKLaboklab(44.12% 0.0026 -0.1877)
OKLCHoklch(44.12% 0.188 270.8)
XYZxyz(11.7488, 7.7792, 46.2205)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3140B8 #B8A931
analogous
#3183B8 #3140B8 #6531B8
triadic
#3140B8 #B83140 #40B831
tetradic
#3140B8 #B83183 #B8A931 #31B865
square
#3140B8 #B83183 #B8A931 #31B865
split-complementary
#3140B8 #B86531 #83B831
monochromatic
#171E57 #242F88 #3140B8 #5562D2 #858FDE

Accessibility & contrast

On white

8.22
#3140B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3140B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3140B8
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3140B8#FFFFFF#000000##FFFFFF
##3140B81.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3140b8;
/* rgb */ color: rgb(49, 64, 184);
/* oklch */ color: oklch(44.1% 0.188 270.8);
Tailwind
colors: {
  custom: {
    50: '#7d75ce',
    500: '#3140b8',
    950: '#000000',
  },
}
SCSS
$custom: #3140b8;
$custom-light: #7d75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3140b8",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 233.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44117,
    "c": 0.18773,
    "h": 270.8
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#3140B8
secondary
#C8C07D
accent
#D047E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3140B8

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

Preview Lab → · Contrast checker → · Palette generator →

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