#335CAB#335CAB

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

Color values

HEX#335CAB
RGBrgb(51, 92, 171)
HSLhsl(220, 54%, 44%)
HSVhsv(220, 70%, 67%)
CMYKcmyk(70.2%, 46.2%, 0%, 32.9%)
CIE-LABlab(40.08, 12.83, -46.60)
CIE-LCHlch(40.08, 48.34, 285.40°)
OKLaboklab(48.76% -0.0187 -0.1334)
OKLCHoklch(48.76% 0.135 262)
XYZxyz(12.5405, 11.2971, 40.0398)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CAB #AB8233
analogous
#3398AB #335CAB #4633AB
triadic
#335CAB #AB335C #5CAB33
tetradic
#335CAB #AB3398 #AB8233 #33AB46
square
#335CAB #AB3398 #AB8233 #33AB46
split-complementary
#335CAB #AB4633 #98AB33
monochromatic
#17294D #25437C #335CAB #507ACB #7F9ED9

Accessibility & contrast

On white

6.44
#335CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CAB
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CAB#FFFFFF#000000##FFFFFF
##335CAB1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AE
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335cab;
/* rgb */ color: rgb(51, 92, 171);
/* oklch */ color: oklch(48.8% 0.135 262.0);
Tailwind
colors: {
  custom: {
    50: '#7989c4',
    500: '#335cab',
    950: '#000000',
  },
}
SCSS
$custom: #335cab;
$custom-light: #7989c4;
$custom-dark: #000000;
JSON
{
  "hex": "#335cab",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 219.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48764,
    "c": 0.13473,
    "h": 262
  },
  "luminance": 0.11298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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