#334FC8#334FC8

#334FC8 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.4% C 0.190 H 268.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#334FC8
RGBrgb(51, 79, 200)
HSLhsl(229, 59%, 49%)
HSVhsv(229, 75%, 78%)
CMYKcmyk(74.5%, 60.5%, 0%, 21.6%)
CIE-LABlab(38.66, 32.06, -65.88)
CIE-LCHlch(38.66, 73.27, 295.95°)
OKLaboklab(48.36% -0.0058 -0.1903)
OKLCHoklch(48.36% 0.19 268.3)
XYZxyz(14.5829, 10.4643, 55.8836)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC8 #C8AC33
analogous
#339AC8 #334FC8 #6233C8
triadic
#334FC8 #C8334F #4FC833
tetradic
#334FC8 #C8339A #C8AC33 #33C862
square
#334FC8 #C8339A #C8AC33 #33C862
split-complementary
#334FC8 #C86233 #9AC833
monochromatic
#1A2866 #273C97 #334FC8 #6177D7 #92A1E3

Accessibility & contrast

On white

6.79
#334FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#334FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC8
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC8#FFFFFF#000000##FFFFFF
##334FC81.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #334fc8;
/* rgb */ color: rgb(51, 79, 200);
/* oklch */ color: oklch(48.4% 0.190 268.3);
Tailwind
colors: {
  custom: {
    50: '#8080da',
    500: '#334fc8',
    950: '#000000',
  },
}
SCSS
$custom: #334fc8;
$custom-light: #8080da;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc8",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 228.725,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48356,
    "c": 0.1904,
    "h": 268.3
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#334FC8
secondary
#CEC189
accent
#C545E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #334FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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