#335CBA#335CBA

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

Color values

HEX#335CBA
RGBrgb(51, 92, 186)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 73%, 73%)
CMYKcmyk(72.6%, 50.5%, 0%, 27.1%)
CIE-LABlab(41.06, 18.44, -53.84)
CIE-LCHlch(41.06, 56.91, 288.91°)
OKLaboklab(49.83% -0.0165 -0.1547)
OKLCHoklch(49.83% 0.156 263.9)
XYZxyz(14.0522, 11.9018, 48.0015)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CBA #BA9133
analogous
#33A0BA #335CBA #4E33BA
triadic
#335CBA #BA335C #5CBA33
tetradic
#335CBA #BA33A0 #BA9133 #33BA4E
square
#335CBA #BA33A0 #BA9133 #33BA4E
split-complementary
#335CBA #BA4E33 #A0BA33
monochromatic
#192C5A #26448A #335CBA #597DD1 #89A3DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335CBA#FFFFFF#000000##FFFFFF
##335CBA1.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)
#2367BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335cba;
/* rgb */ color: rgb(51, 92, 186);
/* oklch */ color: oklch(49.8% 0.156 263.9);
Tailwind
colors: {
  custom: {
    50: '#7c89cf',
    500: '#335cba',
    950: '#000000',
  },
}
SCSS
$custom: #335cba;
$custom-light: #7c89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#335cba",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 221.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.15559,
    "h": 263.9
  },
  "luminance": 0.11903
}

Semantic roles & 50–950 ramp

primary
#335CBA
secondary
#C9B380
accent
#B248E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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