#334BB9#334BB9

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

Color values

HEX#334BB9
RGBrgb(51, 75, 185)
HSLhsl(229, 57%, 46%)
HSVhsv(229, 72%, 73%)
CMYKcmyk(72.4%, 59.5%, 0%, 27.5%)
CIE-LABlab(36.44, 29.16, -60.75)
CIE-LCHlch(36.44, 67.38, 295.64°)
OKLaboklab(46.33% -0.003 -0.1753)
OKLCHoklch(46.33% 0.175 269)
XYZxyz(12.6353, 9.2374, 47.0066)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB9 #B9A133
analogous
#338EB9 #334BB9 #5E33B9
triadic
#334BB9 #B9334B #4BB933
tetradic
#334BB9 #B9338E #B9A133 #33B95E
square
#334BB9 #B9338E #B9A133 #33B95E
split-complementary
#334BB9 #B95E33 #8EB933
monochromatic
#192459 #263889 #334BB9 #586ED1 #8898DE

Accessibility & contrast

On white

7.37
#334BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#334BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB9
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB9#FFFFFF#000000##FFFFFF
##334BB91.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bb9;
/* rgb */ color: rgb(51, 75, 185);
/* oklch */ color: oklch(46.3% 0.175 269.0);
Tailwind
colors: {
  custom: {
    50: '#7d7dcf',
    500: '#334bb9',
    950: '#000000',
  },
}
SCSS
$custom: #334bb9;
$custom-light: #7d7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb9",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 229.254,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46325,
    "c": 0.17532,
    "h": 269
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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