#3134A2#3134A2

#3134A2 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.173 H 274.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#3134A2
RGBrgb(49, 52, 162)
HSLhsl(238, 54%, 41%)
HSVhsv(238, 70%, 64%)
CMYKcmyk(69.8%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.69, 35.40, -59.70)
CIE-LCHlch(28.69, 69.41, 300.67°)
OKLaboklab(39.98% 0.0125 -0.1725)
OKLCHoklch(39.98% 0.173 274.1)
XYZxyz(9.0140, 5.7167, 34.8038)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3134A2 #A29F31
analogous
#316DA2 #3134A2 #6731A2
triadic
#3134A2 #A23134 #34A231
tetradic
#3134A2 #A2316D #A29F31 #31A267
square
#3134A2 #A2316D #A29F31 #31A267
split-complementary
#3134A2 #A26731 #6DA231
monochromatic
#151644 #232573 #3134A2 #484CC8 #777AD6

Accessibility & contrast

On white

9.80
#3134A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3134A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3134A2
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3134A2#FFFFFF#000000##FFFFFF
##3134A21.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3134a2;
/* rgb */ color: rgb(49, 52, 162);
/* oklch */ color: oklch(40.0% 0.173 274.1);
Tailwind
colors: {
  custom: {
    50: '#796cbf',
    500: '#3134a2',
    950: '#000000',
  },
}
SCSS
$custom: #3134a2;
$custom-light: #796cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#3134a2",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 238.407,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39984,
    "c": 0.17291,
    "h": 274.1
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#3134A2
secondary
#BEBC71
accent
#D94BDD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3134A2

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

Preview Lab → · Contrast checker → · Palette generator →

#3134A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva