#335CB3#335CB3

#335CB3 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.146 H 263.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#335CB3
RGBrgb(51, 92, 179)
HSLhsl(221, 56%, 45%)
HSVhsv(221, 72%, 70%)
CMYKcmyk(71.5%, 48.6%, 0%, 29.8%)
CIE-LABlab(40.59, 15.82, -50.49)
CIE-LCHlch(40.59, 52.91, 287.40°)
OKLaboklab(49.32% -0.0174 -0.1449)
OKLCHoklch(49.32% 0.146 263.1)
XYZxyz(13.3262, 11.6114, 44.1780)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB3 #B38A33
analogous
#339CB3 #335CB3 #4A33B3
triadic
#335CB3 #B3335C #5CB333
tetradic
#335CB3 #B3339C #B38A33 #33B34A
square
#335CB3 #B3339C #B38A33 #33B34A
split-complementary
#335CB3 #B34A33 #9CB333
monochromatic
#182B54 #254483 #335CB3 #557CCE #84A0DC

Accessibility & contrast

On white

6.32
#335CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#335CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB3
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB3#FFFFFF#000000##FFFFFF
##335CB31.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#055AB1
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb3;
/* rgb */ color: rgb(51, 92, 179);
/* oklch */ color: oklch(49.3% 0.146 263.1);
Tailwind
colors: {
  custom: {
    50: '#7b89ca',
    500: '#335cb3',
    950: '#000000',
  },
}
SCSS
$custom: #335cb3;
$custom-light: #7b89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb3",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 220.781,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49324,
    "c": 0.14591,
    "h": 263.1
  },
  "luminance": 0.11613
}

Semantic roles & 50–950 ramp

primary
#335CB3
secondary
#C6AE7C
accent
#AF49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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