#335CC7#335CC7

#335CC7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.173 H 265.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#335CC7
RGBrgb(51, 92, 199)
HSLhsl(223, 59%, 49%)
HSVhsv(223, 74%, 78%)
CMYKcmyk(74.4%, 53.8%, 0%, 22%)
CIE-LABlab(41.97, 23.29, -59.93)
CIE-LCHlch(41.97, 64.29, 291.24°)
OKLaboklab(50.81% -0.0152 -0.1726)
OKLCHoklch(50.81% 0.173 265)
XYZxyz(15.4976, 12.4799, 55.6139)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CC7 #C79E33
analogous
#33A6C7 #335CC7 #5433C7
triadic
#335CC7 #C7335C #5CC733
tetradic
#335CC7 #C733A6 #C79E33 #33C754
square
#335CC7 #C733A6 #C79E33 #33C754
split-complementary
#335CC7 #C75433 #A6C733
monochromatic
#1A2F66 #274596 #335CC7 #6181D6 #91A8E3

Accessibility & contrast

On white

6.01
#335CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#335CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CC7
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CC7#FFFFFF#000000##FFFFFF
##335CC71.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ACB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335cc7;
/* rgb */ color: rgb(51, 92, 199);
/* oklch */ color: oklch(50.8% 0.173 265.0);
Tailwind
colors: {
  custom: {
    50: '#7f89d9',
    500: '#335cc7',
    950: '#000000',
  },
}
SCSS
$custom: #335cc7;
$custom-light: #7f89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#335cc7",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 223.378,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.17329,
    "h": 265
  },
  "luminance": 0.12482
}

Semantic roles & 50–950 ramp

primary
#335CC7
secondary
#CEBA88
accent
#B745E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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