#334BB5#334BB5

#334BB5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.170 H 269.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#334BB5
RGBrgb(51, 75, 181)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 71%)
CMYKcmyk(71.8%, 58.6%, 0%, 29%)
CIE-LABlab(36.12, 27.69, -58.91)
CIE-LCHlch(36.12, 65.09, 295.18°)
OKLaboklab(45.99% -0.0031 -0.1699)
OKLCHoklch(45.99% 0.17 269)
XYZxyz(12.2189, 9.0709, 44.8140)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB5 #B59D33
analogous
#338CB5 #334BB5 #5C33B5
triadic
#334BB5 #B5334B #4BB533
tetradic
#334BB5 #B5338C #B59D33 #33B55C
square
#334BB5 #B5338C #B59D33 #33B55C
split-complementary
#334BB5 #B55C33 #8CB533
monochromatic
#182356 #263785 #334BB5 #566CCF #8696DD

Accessibility & contrast

On white

7.46
#334BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#334BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB5
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB5#FFFFFF#000000##FFFFFF
##334BB51.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334bb5;
/* rgb */ color: rgb(51, 75, 181);
/* oklch */ color: oklch(46.0% 0.170 269.0);
Tailwind
colors: {
  custom: {
    50: '#7c7dcc',
    500: '#334bb5',
    950: '#000000',
  },
}
SCSS
$custom: #334bb5;
$custom-light: #7c7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb5",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 228.923,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4599,
    "c": 0.16991,
    "h": 269
  },
  "luminance": 0.09072
}

Semantic roles & 50–950 ramp

primary
#334BB5
secondary
#C6B97D
accent
#C348DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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