#334CBA#334CBA

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

Color values

HEX#334CBA
RGBrgb(51, 76, 186)
HSLhsl(229, 57%, 46%)
HSVhsv(229, 73%, 73%)
CMYKcmyk(72.6%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.77, 28.88, -60.79)
CIE-LCHlch(36.77, 67.30, 295.41°)
OKLaboklab(46.6% -0.0038 -0.1754)
OKLCHoklch(46.6% 0.175 268.8)
XYZxyz(12.8096, 9.4165, 47.5873)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBA #BAA133
analogous
#3390BA #334CBA #5E33BA
triadic
#334CBA #BA334C #4CBA33
tetradic
#334CBA #BA3390 #BAA133 #33BA5E
square
#334CBA #BA3390 #BAA133 #33BA5E
split-complementary
#334CBA #BA5E33 #90BA33
monochromatic
#19255A #26388A #334CBA #596FD1 #8999DF

Accessibility & contrast

On white

7.28
#334CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#334CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBA#FFFFFF#000000##FFFFFF
##334CBA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334cba;
/* rgb */ color: rgb(51, 76, 186);
/* oklch */ color: oklch(46.6% 0.175 268.8);
Tailwind
colors: {
  custom: {
    50: '#7d7dd0',
    500: '#334cba',
    950: '#000000',
  },
}
SCSS
$custom: #334cba;
$custom-light: #7d7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#334cba",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 228.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46601,
    "c": 0.17543,
    "h": 268.8
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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