#334BD3#334BD3

#334BD3 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.6% C 0.209 H 269.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#334BD3
RGBrgb(51, 75, 211)
HSLhsl(231, 65%, 51%)
HSVhsv(231, 76%, 83%)
CMYKcmyk(75.8%, 64.5%, 0%, 17.3%)
CIE-LABlab(38.62, 38.55, -72.32)
CIE-LCHlch(38.62, 81.95, 298.06°)
OKLaboklab(48.61% -0.0036 -0.2092)
OKLCHoklch(48.61% 0.209 269)
XYZxyz(15.6351, 10.4374, 62.8060)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BD3 #D3BB33
analogous
#339BD3 #334BD3 #6B33D3
triadic
#334BD3 #D3334B #4BD333
tetradic
#334BD3 #D3339B #D3BB33 #33D36B
square
#334BD3 #D3339B #D3BB33 #33D36B
split-complementary
#334BD3 #D36B33 #9BD333
monochromatic
#192673 #2437A5 #334BD3 #6577DE #98A4E9

Accessibility & contrast

On white

6.80
#334BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #334BD3
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BD3#FFFFFF#000000##FFFFFF
##334BD31.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#006F88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #334bd3;
/* rgb */ color: rgb(51, 75, 211);
/* oklch */ color: oklch(48.6% 0.209 269.0);
Tailwind
colors: {
  custom: {
    50: '#837de2',
    500: '#334bd3',
    950: '#000000',
  },
}
SCSS
$custom: #334bd3;
$custom-light: #837de2;
$custom-dark: #000000;
JSON
{
  "hex": "#334bd3",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 211
  },
  "hsl": {
    "h": 231,
    "s": 64.516,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48608,
    "c": 0.20924,
    "h": 269
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#334BD3
secondary
#D4CA8E
accent
#CE40E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0915
muted
#7D7B84

Preview Lab

Preview with #334BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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