#334FBA#334FBA

#334FBA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#334FBA
RGBrgb(51, 79, 186)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 73%, 73%)
CMYKcmyk(72.6%, 57.5%, 0%, 27.1%)
CIE-LABlab(37.55, 26.92, -59.52)
CIE-LCHlch(37.55, 65.33, 294.34°)
OKLaboklab(47.18% -0.006 -0.1716)
OKLCHoklch(47.18% 0.172 268)
XYZxyz(13.0211, 9.8396, 47.6578)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FBA #BA9E33
analogous
#3393BA #334FBA #5B33BA
triadic
#334FBA #BA334F #4FBA33
tetradic
#334FBA #BA3393 #BA9E33 #33BA5B
square
#334FBA #BA3393 #BA9E33 #33BA5B
split-complementary
#334FBA #BA5B33 #93BA33
monochromatic
#19265A #263B8A #334FBA #5972D1 #899BDF

Accessibility & contrast

On white

7.07
#334FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#334FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FBA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FBA#FFFFFF#000000##FFFFFF
##334FBA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334fba;
/* rgb */ color: rgb(51, 79, 186);
/* oklch */ color: oklch(47.2% 0.172 268.0);
Tailwind
colors: {
  custom: {
    50: '#7d80d0',
    500: '#334fba',
    950: '#000000',
  },
}
SCSS
$custom: #334fba;
$custom-light: #7d80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#334fba",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 227.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.17174,
    "h": 268
  },
  "luminance": 0.09841
}

Semantic roles & 50–950 ramp

primary
#334FBA
secondary
#C9BA80
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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