#334FC4#334FC4

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

Color values

HEX#334FC4
RGBrgb(51, 79, 196)
HSLhsl(228, 59%, 48%)
HSVhsv(228, 74%, 77%)
CMYKcmyk(74%, 59.7%, 0%, 23.1%)
CIE-LABlab(38.34, 30.60, -64.08)
CIE-LCHlch(38.34, 71.01, 295.52°)
OKLaboklab(48.02% -0.0058 -0.185)
OKLCHoklch(48.02% 0.185 268.2)
XYZxyz(14.1216, 10.2798, 53.4538)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC4 #C4A833
analogous
#3397C4 #334FC4 #5F33C4
triadic
#334FC4 #C4334F #4FC433
tetradic
#334FC4 #C43397 #C4A833 #33C45F
square
#334FC4 #C43397 #C4A833 #33C45F
split-complementary
#334FC4 #C45F33 #97C433
monochromatic
#1A2863 #263B93 #334FC4 #5F76D5 #8F9FE2

Accessibility & contrast

On white

6.87
#334FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#334FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC4#FFFFFF#000000##FFFFFF
##334FC41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334fc4;
/* rgb */ color: rgb(51, 79, 196);
/* oklch */ color: oklch(48.0% 0.185 268.2);
Tailwind
colors: {
  custom: {
    50: '#7f80d7',
    500: '#334fc4',
    950: '#000000',
  },
}
SCSS
$custom: #334fc4;
$custom-light: #7f80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc4",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 228.414,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.18513,
    "h": 268.2
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#334FC4
secondary
#CDBF86
accent
#C446E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #334FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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