#334FC3#334FC3

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

Color values

HEX#334FC3
RGBrgb(51, 79, 195)
HSLhsl(228, 59%, 48%)
HSVhsv(228, 74%, 76%)
CMYKcmyk(73.8%, 59.5%, 0%, 23.5%)
CIE-LABlab(38.26, 30.23, -63.63)
CIE-LCHlch(38.26, 70.45, 295.41°)
OKLaboklab(47.93% -0.0058 -0.1837)
OKLCHoklch(47.93% 0.184 268.2)
XYZxyz(14.0081, 10.2344, 52.8564)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC3 #C3A733
analogous
#3397C3 #334FC3 #5F33C3
triadic
#334FC3 #C3334F #4FC333
tetradic
#334FC3 #C33397 #C3A733 #33C35F
square
#334FC3 #C33397 #C3A733 #33C35F
split-complementary
#334FC3 #C35F33 #97C333
monochromatic
#1A2862 #263B92 #334FC3 #5E75D5 #8F9FE2

Accessibility & contrast

On white

6.89
#334FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#334FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC3#FFFFFF#000000##FFFFFF
##334FC31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334fc3;
/* rgb */ color: rgb(51, 79, 195);
/* oklch */ color: oklch(47.9% 0.184 268.2);
Tailwind
colors: {
  custom: {
    50: '#7f80d6',
    500: '#334fc3',
    950: '#000000',
  },
}
SCSS
$custom: #334fc3;
$custom-light: #7f80d6;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc3",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 195
  },
  "hsl": {
    "h": 228.333,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47931,
    "c": 0.1838,
    "h": 268.2
  },
  "luminance": 0.10236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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