#334CD3#334CD3

#334CD3 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 48.8% C 0.208 H 268.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#334CD3
RGBrgb(51, 76, 211)
HSLhsl(231, 65%, 51%)
HSVhsv(231, 76%, 83%)
CMYKcmyk(75.8%, 64%, 0%, 17.3%)
CIE-LABlab(38.85, 37.92, -71.93)
CIE-LCHlch(38.85, 81.32, 297.80°)
OKLaboklab(48.78% -0.0042 -0.2081)
OKLCHoklch(48.78% 0.208 268.8)
XYZxyz(15.7035, 10.5741, 62.8288)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CD3 #D3BA33
analogous
#339CD3 #334CD3 #6A33D3
triadic
#334CD3 #D3334C #4CD333
tetradic
#334CD3 #D3339C #D3BA33 #33D36A
square
#334CD3 #D3339C #D3BA33 #33D36A
split-complementary
#334CD3 #D36A33 #9CD333
monochromatic
#192773 #2438A5 #334CD3 #6578DE #98A4E9

Accessibility & contrast

On white

6.74
#334CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#334CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334CD3
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CD3#FFFFFF#000000##FFFFFF
##334CD31.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #334cd3;
/* rgb */ color: rgb(51, 76, 211);
/* oklch */ color: oklch(48.8% 0.208 268.8);
Tailwind
colors: {
  custom: {
    50: '#837ee2',
    500: '#334cd3',
    950: '#000000',
  },
}
SCSS
$custom: #334cd3;
$custom-light: #837ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#334cd3",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 230.625,
    "s": 64.516,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48783,
    "c": 0.20811,
    "h": 268.8
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#334CD3
secondary
#D4C98E
accent
#CD40E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #334CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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