#334DC2#334DC2

#334DC2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.5% C 0.185 H 268.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#334DC2
RGBrgb(51, 77, 194)
HSLhsl(229, 58%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.7%, 60.3%, 0%, 23.9%)
CIE-LABlab(37.67, 31.16, -64.01)
CIE-LCHlch(37.67, 71.19, 295.95°)
OKLaboklab(47.47% -0.0044 -0.1848)
OKLCHoklch(47.47% 0.185 268.6)
XYZxyz(13.7534, 9.9051, 52.2155)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DC2 #C2A833
analogous
#3394C2 #334DC2 #6033C2
triadic
#334DC2 #C2334D #4DC233
tetradic
#334DC2 #C23394 #C2A833 #33C260
square
#334DC2 #C23394 #C2A833 #33C260
split-complementary
#334DC2 #C26033 #94C233
monochromatic
#1A2761 #263A92 #334DC2 #5E73D5 #8E9DE1

Accessibility & contrast

On white

7.04
#334DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#334DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DC2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DC2#FFFFFF#000000##FFFFFF
##334DC21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334dc2;
/* rgb */ color: rgb(51, 77, 194);
/* oklch */ color: oklch(47.5% 0.185 268.6);
Tailwind
colors: {
  custom: {
    50: '#7f7ed5',
    500: '#334dc2',
    950: '#000000',
  },
}
SCSS
$custom: #334dc2;
$custom-light: #7f7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#334dc2",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 229.091,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47469,
    "c": 0.18489,
    "h": 268.6
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

primary
#334DC2
secondary
#CCBF85
accent
#C546E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #334DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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