#334CB9#334CB9

#334CB9 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.174 H 268.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#334CB9
RGBrgb(51, 76, 185)
HSLhsl(229, 57%, 46%)
HSVhsv(229, 72%, 73%)
CMYKcmyk(72.4%, 58.9%, 0%, 27.5%)
CIE-LABlab(36.70, 28.51, -60.33)
CIE-LCHlch(36.70, 66.73, 295.29°)
OKLaboklab(46.52% -0.0038 -0.174)
OKLCHoklch(46.52% 0.174 268.8)
XYZxyz(12.7036, 9.3742, 47.0294)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB9 #B9A033
analogous
#338FB9 #334CB9 #5D33B9
triadic
#334CB9 #B9334C #4CB933
tetradic
#334CB9 #B9338F #B9A033 #33B95D
square
#334CB9 #B9338F #B9A033 #33B95D
split-complementary
#334CB9 #B95D33 #8FB933
monochromatic
#192559 #263889 #334CB9 #586FD1 #8898DE

Accessibility & contrast

On white

7.30
#334CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#334CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB9
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB9#FFFFFF#000000##FFFFFF
##334CB91.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334cb9;
/* rgb */ color: rgb(51, 76, 185);
/* oklch */ color: oklch(46.5% 0.174 268.8);
Tailwind
colors: {
  custom: {
    50: '#7d7dcf',
    500: '#334cb9',
    950: '#000000',
  },
}
SCSS
$custom: #334cb9;
$custom-light: #7d7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb9",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 228.806,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46517,
    "c": 0.17409,
    "h": 268.8
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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