#334FB4#334FB4

#334FB4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.164 H 267.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#334FB4
RGBrgb(51, 79, 180)
HSLhsl(227, 56%, 45%)
HSVhsv(227, 72%, 71%)
CMYKcmyk(71.7%, 56.1%, 0%, 29.4%)
CIE-LABlab(37.10, 24.70, -56.73)
CIE-LCHlch(37.10, 61.88, 293.53°)
OKLaboklab(46.7% -0.0063 -0.1634)
OKLCHoklch(46.7% 0.164 267.8)
XYZxyz(12.3966, 9.5898, 44.3689)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB4 #B49833
analogous
#338FB4 #334FB4 #5833B4
triadic
#334FB4 #B4334F #4FB433
tetradic
#334FB4 #B4338F #B49833 #33B458
square
#334FB4 #B4338F #B49833 #33B458
split-complementary
#334FB4 #B45833 #8FB433
monochromatic
#182555 #253A84 #334FB4 #5570CF #8598DC

Accessibility & contrast

On white

7.20
#334FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#334FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB4
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB4#FFFFFF#000000##FFFFFF
##334FB41.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334fb4;
/* rgb */ color: rgb(51, 79, 180);
/* oklch */ color: oklch(46.7% 0.164 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c7fcb',
    500: '#334fb4',
    950: '#000000',
  },
}
SCSS
$custom: #334fb4;
$custom-light: #7c7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb4",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 226.977,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46696,
    "c": 0.16355,
    "h": 267.8
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#334FB4
secondary
#C6B67D
accent
#BE49DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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