#335BC7#335BC7

#335BC7 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.175 H 265.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#335BC7
RGBrgb(51, 91, 199)
HSLhsl(224, 59%, 49%)
HSVhsv(224, 74%, 78%)
CMYKcmyk(74.4%, 54.3%, 0%, 22%)
CIE-LABlab(41.70, 23.94, -60.36)
CIE-LCHlch(41.70, 64.93, 291.63°)
OKLaboklab(50.61% -0.0144 -0.1739)
OKLCHoklch(50.61% 0.175 265.3)
XYZxyz(15.4115, 12.3078, 55.5852)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BC7 #C79F33
analogous
#33A5C7 #335BC7 #5533C7
triadic
#335BC7 #C7335B #5BC733
tetradic
#335BC7 #C733A5 #C79F33 #33C755
square
#335BC7 #C733A5 #C79F33 #33C755
split-complementary
#335BC7 #C75533 #A5C733
monochromatic
#1A2E66 #274596 #335BC7 #6181D6 #91A7E3

Accessibility & contrast

On white

6.07
#335BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#335BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BC7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BC7#FFFFFF#000000##FFFFFF
##335BC71.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335bc7;
/* rgb */ color: rgb(51, 91, 199);
/* oklch */ color: oklch(50.6% 0.175 265.3);
Tailwind
colors: {
  custom: {
    50: '#7f88d9',
    500: '#335bc7',
    950: '#000000',
  },
}
SCSS
$custom: #335bc7;
$custom-light: #7f88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#335bc7",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 223.784,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50608,
    "c": 0.17451,
    "h": 265.3
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#335BC7
secondary
#CEBB88
accent
#B845E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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