#334FB0#334FB0

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

Color values

HEX#334FB0
RGBrgb(51, 79, 176)
HSLhsl(227, 55%, 45%)
HSVhsv(227, 71%, 69%)
CMYKcmyk(71%, 55.1%, 0%, 31%)
CIE-LABlab(36.80, 23.22, -54.85)
CIE-LCHlch(36.80, 59.56, 292.95°)
OKLaboklab(46.38% -0.0065 -0.1579)
OKLCHoklch(46.38% 0.158 267.6)
XYZxyz(11.9950, 9.4291, 42.2537)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB0 #B09433
analogous
#338EB0 #334FB0 #5633B0
triadic
#334FB0 #B0334F #4FB033
tetradic
#334FB0 #B0338E #B09433 #33B056
square
#334FB0 #B0338E #B09433 #33B056
split-complementary
#334FB0 #B05633 #8EB033
monochromatic
#182451 #253A81 #334FB0 #536ECD #8296DB

Accessibility & contrast

On white

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

On black

2.89
#334FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##334FB0#FFFFFF#000000##FFFFFF
##334FB01.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB3
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334fb0;
/* rgb */ color: rgb(51, 79, 176);
/* oklch */ color: oklch(46.4% 0.158 267.6);
Tailwind
colors: {
  custom: {
    50: '#7b7fc8',
    500: '#334fb0',
    950: '#000000',
  },
}
SCSS
$custom: #334fb0;
$custom-light: #7b7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb0",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 176
  },
  "hsl": {
    "h": 226.56,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.15803,
    "h": 267.6
  },
  "luminance": 0.0943
}

Semantic roles & 50–950 ramp

primary
#334FB0
secondary
#C4B47B
accent
#BD49DE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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