#334BB3#334BB3

#334BB3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.167 H 268.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#334BB3
RGBrgb(51, 75, 179)
HSLhsl(229, 56%, 45%)
HSVhsv(229, 72%, 70%)
CMYKcmyk(71.5%, 58.1%, 0%, 29.8%)
CIE-LABlab(35.96, 26.96, -57.98)
CIE-LCHlch(35.96, 63.94, 294.94°)
OKLaboklab(45.82% -0.0031 -0.1672)
OKLCHoklch(45.82% 0.167 268.9)
XYZxyz(12.0152, 8.9894, 43.7410)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB3 #B39B33
analogous
#338BB3 #334BB3 #5B33B3
triadic
#334BB3 #B3334B #4BB333
tetradic
#334BB3 #B3338B #B39B33 #33B35B
square
#334BB3 #B3338B #B39B33 #33B35B
split-complementary
#334BB3 #B35B33 #8BB333
monochromatic
#182354 #253783 #334BB3 #556CCE #8495DC

Accessibility & contrast

On white

7.50
#334BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#334BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB3
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB3#FFFFFF#000000##FFFFFF
##334BB31.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334bb3;
/* rgb */ color: rgb(51, 75, 179);
/* oklch */ color: oklch(45.8% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dcb',
    500: '#334bb3',
    950: '#000000',
  },
}
SCSS
$custom: #334bb3;
$custom-light: #7c7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb3",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 179
  },
  "hsl": {
    "h": 228.75,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45824,
    "c": 0.16719,
    "h": 268.9
  },
  "luminance": 0.08991
}

Semantic roles & 50–950 ramp

primary
#334BB3
secondary
#C6B87C
accent
#C349DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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