#334EB7#334EB7

#334EB7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.169 H 268.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#334EB7
RGBrgb(51, 78, 183)
HSLhsl(228, 56%, 46%)
HSVhsv(228, 72%, 72%)
CMYKcmyk(72.1%, 57.4%, 0%, 28.2%)
CIE-LABlab(37.06, 26.47, -58.56)
CIE-LCHlch(37.06, 64.26, 294.32°)
OKLaboklab(46.74% -0.0054 -0.1688)
OKLCHoklch(46.74% 0.169 268.2)
XYZxyz(12.6339, 9.5702, 45.9720)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EB7 #B79C33
analogous
#3390B7 #334EB7 #5A33B7
triadic
#334EB7 #B7334E #4EB733
tetradic
#334EB7 #B73390 #B79C33 #33B75A
square
#334EB7 #B73390 #B79C33 #33B75A
split-complementary
#334EB7 #B75A33 #90B733
monochromatic
#182557 #263A87 #334EB7 #5770D0 #8799DE

Accessibility & contrast

On white

7.21
#334EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#334EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EB7
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EB7#FFFFFF#000000##FFFFFF
##334EB71.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334eb7;
/* rgb */ color: rgb(51, 78, 183);
/* oklch */ color: oklch(46.7% 0.169 268.2);
Tailwind
colors: {
  custom: {
    50: '#7c7fcd',
    500: '#334eb7',
    950: '#000000',
  },
}
SCSS
$custom: #334eb7;
$custom-light: #7c7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334eb7",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 227.727,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4674,
    "c": 0.16891,
    "h": 268.2
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#334EB7
secondary
#C7B87F
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334EB7

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

Preview Lab → · Contrast checker → · Palette generator →

#334EB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva