#334FC1#334FC1

#334FC1 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.181 H 268.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#334FC1
RGBrgb(51, 79, 193)
HSLhsl(228, 58%, 48%)
HSVhsv(228, 74%, 76%)
CMYKcmyk(73.6%, 59.1%, 0%, 24.3%)
CIE-LABlab(38.10, 29.50, -62.73)
CIE-LCHlch(38.10, 69.32, 295.19°)
OKLaboklab(47.76% -0.0059 -0.181)
OKLCHoklch(47.76% 0.181 268.1)
XYZxyz(13.7835, 10.1446, 51.6734)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FC1 #C1A533
analogous
#3396C1 #334FC1 #5E33C1
triadic
#334FC1 #C1334F #4FC133
tetradic
#334FC1 #C13396 #C1A533 #33C15E
square
#334FC1 #C13396 #C1A533 #33C15E
split-complementary
#334FC1 #C15E33 #96C133
monochromatic
#192760 #263B91 #334FC1 #5D75D4 #8D9EE1

Accessibility & contrast

On white

6.93
#334FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#334FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334FC1
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FC1#FFFFFF#000000##FFFFFF
##334FC11.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334fc1;
/* rgb */ color: rgb(51, 79, 193);
/* oklch */ color: oklch(47.8% 0.181 268.1);
Tailwind
colors: {
  custom: {
    50: '#7f80d5',
    500: '#334fc1',
    950: '#000000',
  },
}
SCSS
$custom: #334fc1;
$custom-light: #7f80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#334fc1",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 193
  },
  "hsl": {
    "h": 228.169,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47763,
    "c": 0.18114,
    "h": 268.1
  },
  "luminance": 0.10146
}

Semantic roles & 50–950 ramp

primary
#334FC1
secondary
#CBBD84
accent
#C346E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #334FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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