#334FB3#334FB3

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

Color values

HEX#334FB3
RGBrgb(51, 79, 179)
HSLhsl(227, 56%, 45%)
HSVhsv(227, 72%, 70%)
CMYKcmyk(71.5%, 55.9%, 0%, 29.8%)
CIE-LABlab(37.02, 24.33, -56.26)
CIE-LCHlch(37.02, 61.30, 293.39°)
OKLaboklab(46.62% -0.0063 -0.162)
OKLCHoklch(46.62% 0.162 267.8)
XYZxyz(12.2951, 9.5492, 43.8343)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB3 #B39733
analogous
#338FB3 #334FB3 #5733B3
triadic
#334FB3 #B3334F #4FB333
tetradic
#334FB3 #B3338F #B39733 #33B357
square
#334FB3 #B3338F #B39733 #33B357
split-complementary
#334FB3 #B35733 #8FB333
monochromatic
#182554 #253A83 #334FB3 #556FCE #8498DC

Accessibility & contrast

On white

7.22
#334FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#334FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB3
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB3#FFFFFF#000000##FFFFFF
##334FB31.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334fb3;
/* rgb */ color: rgb(51, 79, 179);
/* oklch */ color: oklch(46.6% 0.162 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7fca',
    500: '#334fb3',
    950: '#000000',
  },
}
SCSS
$custom: #334fb3;
$custom-light: #7b7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb3",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 179
  },
  "hsl": {
    "h": 226.875,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46616,
    "c": 0.16217,
    "h": 267.8
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#334FB3
secondary
#C6B67C
accent
#BE49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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