#335CAC#335CAC

#335CAC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.136 H 262.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#335CAC
RGBrgb(51, 92, 172)
HSLhsl(220, 54%, 44%)
HSVhsv(220, 70%, 67%)
CMYKcmyk(70.3%, 46.5%, 0%, 32.5%)
CIE-LABlab(40.14, 13.21, -47.09)
CIE-LCHlch(40.14, 48.91, 285.67°)
OKLaboklab(48.83% -0.0185 -0.1349)
OKLCHoklch(48.83% 0.136 262.2)
XYZxyz(12.6361, 11.3354, 40.5437)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CAC #AC8333
analogous
#3398AC #335CAC #4633AC
triadic
#335CAC #AC335C #5CAC33
tetradic
#335CAC #AC3398 #AC8333 #33AC46
square
#335CAC #AC3398 #AC8333 #33AC46
split-complementary
#335CAC #AC4633 #98AC33
monochromatic
#172A4E #25437D #335CAC #517ACB #809ED9

Accessibility & contrast

On white

6.43
#335CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#335CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CAC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CAC#FFFFFF#000000##FFFFFF
##335CAC1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365AF
Deuteranopia (green-blind)
#1A59AA
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335cac;
/* rgb */ color: rgb(51, 92, 172);
/* oklch */ color: oklch(48.8% 0.136 262.2);
Tailwind
colors: {
  custom: {
    50: '#7989c5',
    500: '#335cac',
    950: '#000000',
  },
}
SCSS
$custom: #335cac;
$custom-light: #7989c5;
$custom-dark: #000000;
JSON
{
  "hex": "#335cac",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 219.669,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48833,
    "c": 0.13614,
    "h": 262.2
  },
  "luminance": 0.11337
}

Semantic roles & 50–950 ramp

primary
#335CAC
secondary
#C2A978
accent
#AC4ADE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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