#334CBF#334CBF

#334CBF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.0% C 0.182 H 268.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#334CBF
RGBrgb(51, 76, 191)
HSLhsl(229, 58%, 47%)
HSVhsv(229, 73%, 75%)
CMYKcmyk(73.3%, 60.2%, 0%, 25.1%)
CIE-LABlab(37.18, 30.71, -63.07)
CIE-LCHlch(37.18, 70.14, 295.96°)
OKLaboklab(47.02% -0.0037 -0.1821)
OKLCHoklch(47.02% 0.182 268.8)
XYZxyz(13.3504, 9.6329, 50.4358)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBF #BFA633
analogous
#3392BF #334CBF #6033BF
triadic
#334CBF #BF334C #4CBF33
tetradic
#334CBF #BF3392 #BFA633 #33BF60
square
#334CBF #BF3392 #BFA633 #33BF60
split-complementary
#334CBF #BF6033 #92BF33
monochromatic
#19265E #26398F #334CBF #5C71D3 #8C9BE0

Accessibility & contrast

On white

7.18
#334CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#334CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBF#FFFFFF#000000##FFFFFF
##334CBF1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334cbf;
/* rgb */ color: rgb(51, 76, 191);
/* oklch */ color: oklch(47.0% 0.182 268.8);
Tailwind
colors: {
  custom: {
    50: '#7e7dd3',
    500: '#334cbf',
    950: '#000000',
  },
}
SCSS
$custom: #334cbf;
$custom-light: #7e7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#334cbf",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 229.286,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47024,
    "c": 0.18212,
    "h": 268.8
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#334CBF
secondary
#CBBE83
accent
#C647E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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