#334FC5#334FC5

#334FC5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.186 H 268.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#334FC5
RGBrgb(51, 79, 197)
HSLhsl(228, 59%, 49%)
HSVhsv(228, 74%, 77%)
CMYKcmyk(74.1%, 59.9%, 0%, 22.7%)
CIE-LABlab(38.42, 30.96, -64.54)
CIE-LCHlch(38.42, 71.58, 295.63°)
OKLaboklab(48.1% -0.0058 -0.1864)
OKLCHoklch(48.1% 0.186 268.2)
XYZxyz(14.2358, 10.3255, 54.0553)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC5 #C5A933
analogous
#3398C5 #334FC5 #6033C5
triadic
#334FC5 #C5334F #4FC533
tetradic
#334FC5 #C53398 #C5A933 #33C560
square
#334FC5 #C53398 #C5A933 #33C560
split-complementary
#334FC5 #C56033 #98C533
monochromatic
#1A2864 #263C94 #334FC5 #5F76D6 #90A0E2

Accessibility & contrast

On white

6.85
#334FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#334FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC5#FFFFFF#000000##FFFFFF
##334FC51.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334fc5;
/* rgb */ color: rgb(51, 79, 197);
/* oklch */ color: oklch(48.1% 0.186 268.2);
Tailwind
colors: {
  custom: {
    50: '#7f80d7',
    500: '#334fc5',
    950: '#000000',
  },
}
SCSS
$custom: #334fc5;
$custom-light: #7f80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc5",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 228.493,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.481,
    "c": 0.18645,
    "h": 268.2
  },
  "luminance": 0.10327
}

Semantic roles & 50–950 ramp

primary
#334FC5
secondary
#CDC087
accent
#C446E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #334FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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