#334FC2#334FC2

#334FC2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.182 H 268.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#334FC2
RGBrgb(51, 79, 194)
HSLhsl(228, 58%, 48%)
HSVhsv(228, 74%, 76%)
CMYKcmyk(73.7%, 59.3%, 0%, 23.9%)
CIE-LABlab(38.18, 29.86, -63.18)
CIE-LCHlch(38.18, 69.88, 295.30°)
OKLaboklab(47.85% -0.0058 -0.1824)
OKLCHoklch(47.85% 0.182 268.2)
XYZxyz(13.8955, 10.1893, 52.2629)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC2 #C2A633
analogous
#3396C2 #334FC2 #5F33C2
triadic
#334FC2 #C2334F #4FC233
tetradic
#334FC2 #C23396 #C2A633 #33C25F
square
#334FC2 #C23396 #C2A633 #33C25F
split-complementary
#334FC2 #C25F33 #96C233
monochromatic
#1A2861 #263B92 #334FC2 #5E75D5 #8E9EE1

Accessibility & contrast

On white

6.91
#334FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#334FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC2#FFFFFF#000000##FFFFFF
##334FC21.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334fc2;
/* rgb */ color: rgb(51, 79, 194);
/* oklch */ color: oklch(47.8% 0.182 268.2);
Tailwind
colors: {
  custom: {
    50: '#7f80d5',
    500: '#334fc2',
    950: '#000000',
  },
}
SCSS
$custom: #334fc2;
$custom-light: #7f80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc2",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 228.252,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47847,
    "c": 0.18247,
    "h": 268.2
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#334FC2
secondary
#CCBE85
accent
#C346E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #334FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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