#335AC2#335AC2

#335AC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.169 H 265.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#335AC2
RGBrgb(51, 90, 194)
HSLhsl(224, 58%, 48%)
HSVhsv(224, 74%, 76%)
CMYKcmyk(73.7%, 53.6%, 0%, 23.9%)
CIE-LABlab(41.07, 22.73, -58.48)
CIE-LCHlch(41.07, 62.74, 291.24°)
OKLaboklab(50.02% -0.0141 -0.1684)
OKLCHoklch(50.02% 0.169 265.2)
XYZxyz(14.7556, 11.9096, 52.5496)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC2 #C29B33
analogous
#33A1C2 #335AC2 #5333C2
triadic
#335AC2 #C2335A #5AC233
tetradic
#335AC2 #C233A1 #C29B33 #33C253
square
#335AC2 #C233A1 #C29B33 #33C253
split-complementary
#335AC2 #C25333 #A1C233
monochromatic
#1A2D61 #264492 #335AC2 #5E7ED5 #8EA5E1

Accessibility & contrast

On white

6.21
#335AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#335AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC2#FFFFFF#000000##FFFFFF
##335AC21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0768C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335ac2;
/* rgb */ color: rgb(51, 90, 194);
/* oklch */ color: oklch(50.0% 0.169 265.2);
Tailwind
colors: {
  custom: {
    50: '#7e88d5',
    500: '#335ac2',
    950: '#000000',
  },
}
SCSS
$custom: #335ac2;
$custom-light: #7e88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac2",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 223.636,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.16899,
    "h": 265.2
  },
  "luminance": 0.11911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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