#334AD0#334AD0

#334AD0 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.2% C 0.207 H 269.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#334AD0
RGBrgb(51, 74, 208)
HSLhsl(231, 63%, 51%)
HSVhsv(231, 75%, 82%)
CMYKcmyk(75.5%, 64.4%, 0%, 18.4%)
CIE-LABlab(38.12, 38.11, -71.41)
CIE-LCHlch(38.12, 80.94, 298.09°)
OKLaboklab(48.16% -0.0029 -0.2065)
OKLCHoklch(48.16% 0.207 269.2)
XYZxyz(15.1953, 10.1538, 60.8213)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AD0 #D0B933
analogous
#3398D0 #334AD0 #6A33D0
triadic
#334AD0 #D0334A #4AD033
tetradic
#334AD0 #D03398 #D0B933 #33D06A
square
#334AD0 #D03398 #D0B933 #33D06A
split-complementary
#334AD0 #D06A33 #98D033
monochromatic
#1A266F #2537A1 #334AD0 #6576DB #96A2E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334AD0#FFFFFF#000000##FFFFFF
##334AD01.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)
#0061D4
Deuteranopia (green-blind)
#0052CD
Tritanopia (blue-blind)
#006D86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334ad0;
/* rgb */ color: rgb(51, 74, 208);
/* oklch */ color: oklch(48.2% 0.207 269.2);
Tailwind
colors: {
  custom: {
    50: '#827cdf',
    500: '#334ad0',
    950: '#000000',
  },
}
SCSS
$custom: #334ad0;
$custom-light: #827cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#334ad0",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 208
  },
  "hsl": {
    "h": 231.21,
    "s": 62.55,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48162,
    "c": 0.20657,
    "h": 269.2
  },
  "luminance": 0.10155
}

Semantic roles & 50–950 ramp

primary
#334AD0
secondary
#D2C88D
accent
#CE42E6
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #334AD0

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

Preview Lab → · Contrast checker → · Palette generator →

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