#334BB7#334BB7

#334BB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.173 H 269.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#334BB7
RGBrgb(51, 75, 183)
HSLhsl(229, 56%, 46%)
HSVhsv(229, 72%, 72%)
CMYKcmyk(72.1%, 59%, 0%, 28.2%)
CIE-LABlab(36.28, 28.43, -59.83)
CIE-LCHlch(36.28, 66.24, 295.41°)
OKLaboklab(46.16% -0.0031 -0.1726)
OKLCHoklch(46.16% 0.173 269)
XYZxyz(12.4256, 9.1536, 45.9025)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB7 #B79F33
analogous
#338DB7 #334BB7 #5D33B7
triadic
#334BB7 #B7334B #4BB733
tetradic
#334BB7 #B7338D #B79F33 #33B75D
square
#334BB7 #B7338D #B79F33 #33B75D
split-complementary
#334BB7 #B75D33 #8DB733
monochromatic
#182457 #263787 #334BB7 #576DD0 #8797DE

Accessibility & contrast

On white

7.42
#334BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#334BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB7#FFFFFF#000000##FFFFFF
##334BB71.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334bb7;
/* rgb */ color: rgb(51, 75, 183);
/* oklch */ color: oklch(46.2% 0.173 269.0);
Tailwind
colors: {
  custom: {
    50: '#7d7dcd',
    500: '#334bb7',
    950: '#000000',
  },
}
SCSS
$custom: #334bb7;
$custom-light: #7d7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb7",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 229.091,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46157,
    "c": 0.17262,
    "h": 269
  },
  "luminance": 0.09155
}

Semantic roles & 50–950 ramp

primary
#334BB7
secondary
#C7BA7F
accent
#C448E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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