#335BC1#335BC1

#335BC1 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.1% C 0.166 H 264.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#335BC1
RGBrgb(51, 91, 193)
HSLhsl(223, 58%, 48%)
HSVhsv(223, 74%, 76%)
CMYKcmyk(73.6%, 52.8%, 0%, 24.3%)
CIE-LABlab(41.27, 21.70, -57.58)
CIE-LCHlch(41.27, 61.53, 290.65°)
OKLaboklab(50.15% -0.015 -0.1657)
OKLCHoklch(50.15% 0.166 264.8)
XYZxyz(14.7286, 12.0346, 51.9884)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BC1 #C19933
analogous
#33A2C1 #335BC1 #5233C1
triadic
#335BC1 #C1335B #5BC133
tetradic
#335BC1 #C133A2 #C19933 #33C152
square
#335BC1 #C133A2 #C19933 #33C152
split-complementary
#335BC1 #C15233 #A2C133
monochromatic
#192D60 #264491 #335BC1 #5D7FD4 #8DA5E1

Accessibility & contrast

On white

6.16
#335BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#335BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BC1
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BC1#FFFFFF#000000##FFFFFF
##335BC11.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1268C5
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335bc1;
/* rgb */ color: rgb(51, 91, 193);
/* oklch */ color: oklch(50.1% 0.166 264.8);
Tailwind
colors: {
  custom: {
    50: '#7e88d4',
    500: '#335bc1',
    950: '#000000',
  },
}
SCSS
$custom: #335bc1;
$custom-light: #7e88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#335bc1",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 223.099,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50146,
    "c": 0.1664,
    "h": 264.8
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#335BC1
secondary
#CBB784
accent
#B646E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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