#335BC2#335BC2

#335BC2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.2% C 0.168 H 264.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#335BC2
RGBrgb(51, 91, 194)
HSLhsl(223, 58%, 48%)
HSVhsv(223, 74%, 76%)
CMYKcmyk(73.7%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.34, 22.08, -58.04)
CIE-LCHlch(41.34, 62.10, 290.82°)
OKLaboklab(50.22% -0.0149 -0.1671)
OKLCHoklch(50.22% 0.168 264.9)
XYZxyz(14.8405, 12.0794, 52.5779)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BC2 #C29A33
analogous
#33A2C2 #335BC2 #5333C2
triadic
#335BC2 #C2335B #5BC233
tetradic
#335BC2 #C233A2 #C29A33 #33C253
square
#335BC2 #C233A2 #C29A33 #33C253
split-complementary
#335BC2 #C25333 #A2C233
monochromatic
#1A2E61 #264492 #335BC2 #5E7FD5 #8EA5E1

Accessibility & contrast

On white

6.15
#335BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#335BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BC2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BC2#FFFFFF#000000##FFFFFF
##335BC21.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F68C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335bc2;
/* rgb */ color: rgb(51, 91, 194);
/* oklch */ color: oklch(50.2% 0.168 264.9);
Tailwind
colors: {
  custom: {
    50: '#7e88d5',
    500: '#335bc2',
    950: '#000000',
  },
}
SCSS
$custom: #335bc2;
$custom-light: #7e88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#335bc2",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 223.217,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50223,
    "c": 0.16776,
    "h": 264.9
  },
  "luminance": 0.12081
}

Semantic roles & 50–950 ramp

primary
#335BC2
secondary
#CCB885
accent
#B646E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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