#334DC3#334DC3

#334DC3 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.186 H 268.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#334DC3
RGBrgb(51, 77, 195)
HSLhsl(229, 59%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.8%, 60.5%, 0%, 23.5%)
CIE-LABlab(37.75, 31.52, -64.46)
CIE-LCHlch(37.75, 71.75, 296.06°)
OKLaboklab(47.55% -0.0044 -0.1862)
OKLCHoklch(47.55% 0.186 268.6)
XYZxyz(13.8660, 9.9502, 52.8090)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DC3 #C3A933
analogous
#3395C3 #334DC3 #6133C3
triadic
#334DC3 #C3334D #4DC333
tetradic
#334DC3 #C33395 #C3A933 #33C361
square
#334DC3 #C33395 #C3A933 #33C361
split-complementary
#334DC3 #C36133 #95C333
monochromatic
#1A2762 #263A92 #334DC3 #5E74D5 #8F9EE2

Accessibility & contrast

On white

7.02
#334DC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#334DC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DC3
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DC3#FFFFFF#000000##FFFFFF
##334DC31.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334dc3;
/* rgb */ color: rgb(51, 77, 195);
/* oklch */ color: oklch(47.6% 0.186 268.6);
Tailwind
colors: {
  custom: {
    50: '#7f7ed6',
    500: '#334dc3',
    950: '#000000',
  },
}
SCSS
$custom: #334dc3;
$custom-light: #7f7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#334dc3",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 195
  },
  "hsl": {
    "h": 229.167,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47554,
    "c": 0.18621,
    "h": 268.6
  },
  "luminance": 0.09952
}

Semantic roles & 50–950 ramp

primary
#334DC3
secondary
#CCBF86
accent
#C646E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #334DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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