#334FB1#334FB1

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

Color values

HEX#334FB1
RGBrgb(51, 79, 177)
HSLhsl(227, 55%, 45%)
HSVhsv(227, 71%, 69%)
CMYKcmyk(71.2%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.87, 23.59, -55.32)
CIE-LCHlch(36.87, 60.14, 293.10°)
OKLaboklab(46.46% -0.0065 -0.1593)
OKLCHoklch(46.46% 0.159 267.7)
XYZxyz(12.0943, 9.4689, 42.7767)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FB1 #B19533
analogous
#338EB1 #334FB1 #5633B1
triadic
#334FB1 #B1334F #4FB133
tetradic
#334FB1 #B1338E #B19533 #33B156
square
#334FB1 #B1338E #B19533 #33B156
split-complementary
#334FB1 #B15633 #8EB133
monochromatic
#182552 #253A81 #334FB1 #546FCE #8397DB

Accessibility & contrast

On white

7.26
#334FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334FB1
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FB1#FFFFFF#000000##FFFFFF
##334FB11.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fb1;
/* rgb */ color: rgb(51, 79, 177);
/* oklch */ color: oklch(46.5% 0.159 267.7);
Tailwind
colors: {
  custom: {
    50: '#7b7fc9',
    500: '#334fb1',
    950: '#000000',
  },
}
SCSS
$custom: #334fb1;
$custom-light: #7b7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#334fb1",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 226.667,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46456,
    "c": 0.15942,
    "h": 267.7
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#334FB1
secondary
#C5B47B
accent
#BD49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #334FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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