#335FD7#335FD7

#335FD7 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.191 H 265.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#335FD7
RGBrgb(51, 95, 215)
HSLhsl(224, 67%, 52%)
HSVhsv(224, 76%, 84%)
CMYKcmyk(76.3%, 55.8%, 0%, 15.7%)
CIE-LABlab(43.93, 27.29, -65.93)
CIE-LCHlch(43.93, 71.36, 292.49°)
OKLaboklab(52.66% -0.0163 -0.1902)
OKLCHoklch(52.66% 0.191 265.1)
XYZxyz(17.7189, 13.7925, 66.0052)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FD7 #D7AB33
analogous
#33B1D7 #335FD7 #5933D7
triadic
#335FD7 #D7335F #5FD733
tetradic
#335FD7 #D733B1 #D7AB33 #33D759
square
#335FD7 #D733B1 #D7AB33 #33D759
split-complementary
#335FD7 #D75933 #B1D733
monochromatic
#183178 #2247AB #335FD7 #6687E1 #99AFEB

Accessibility & contrast

On white

5.59
#335FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#335FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FD7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FD7#FFFFFF#000000##FFFFFF
##335FD71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0061D5
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #335fd7;
/* rgb */ color: rgb(51, 95, 215);
/* oklch */ color: oklch(52.7% 0.191 265.1);
Tailwind
colors: {
  custom: {
    50: '#828be4',
    500: '#335fd7',
    950: '#000000',
  },
}
SCSS
$custom: #335fd7;
$custom-light: #828be4;
$custom-dark: #000000;
JSON
{
  "hex": "#335fd7",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 223.902,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52662,
    "c": 0.19093,
    "h": 265.1
  },
  "luminance": 0.13795
}

Semantic roles & 50–950 ramp

primary
#335FD7
secondary
#D7C38F
accent
#BC3EEA
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0C16
muted
#7D7D84

Preview Lab

Preview with #335FD7

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

Preview Lab → · Contrast checker → · Palette generator →

#335FD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva