#334FB2#334FB2

#334FB2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.161 H 267.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#334FB2
RGBrgb(51, 79, 178)
HSLhsl(227, 55%, 45%)
HSVhsv(227, 71%, 70%)
CMYKcmyk(71.3%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.95, 23.96, -55.79)
CIE-LCHlch(36.95, 60.72, 293.24°)
OKLaboklab(46.54% -0.0064 -0.1607)
OKLCHoklch(46.54% 0.161 267.7)
XYZxyz(12.1943, 9.5089, 43.3036)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB2 #B29633
analogous
#338EB2 #334FB2 #5733B2
triadic
#334FB2 #B2334F #4FB233
tetradic
#334FB2 #B2338E #B29633 #33B257
square
#334FB2 #B2338E #B29633 #33B257
split-complementary
#334FB2 #B25733 #8EB233
monochromatic
#182553 #253A82 #334FB2 #546FCE #8497DC

Accessibility & contrast

On white

7.24
#334FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FB2
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB2#FFFFFF#000000##FFFFFF
##334FB21.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fb2;
/* rgb */ color: rgb(51, 79, 178);
/* oklch */ color: oklch(46.5% 0.161 267.7);
Tailwind
colors: {
  custom: {
    50: '#7b7fca',
    500: '#334fb2',
    950: '#000000',
  },
}
SCSS
$custom: #334fb2;
$custom-light: #7b7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb2",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 226.772,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.1608,
    "h": 267.7
  },
  "luminance": 0.0951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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