#335CA7#335CA7

#335CA7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.129 H 261.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#335CA7
RGBrgb(51, 92, 167)
HSLhsl(219, 53%, 43%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.5%, 44.9%, 0%, 34.5%)
CIE-LABlab(39.83, 11.34, -44.64)
CIE-LCHlch(39.83, 46.05, 284.26°)
OKLaboklab(48.49% -0.0194 -0.1276)
OKLCHoklch(48.49% 0.129 261.4)
XYZxyz(12.1650, 11.1469, 38.0622)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA7 #A77E33
analogous
#3396A7 #335CA7 #4433A7
triadic
#335CA7 #A7335C #5CA733
tetradic
#335CA7 #A73396 #A77E33 #33A744
square
#335CA7 #A73396 #A77E33 #33A744
split-complementary
#335CA7 #A74433 #96A733
monochromatic
#162849 #254278 #335CA7 #4E7AC9 #7D9DD7

Accessibility & contrast

On white

6.50
#335CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#335CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA7
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA7#FFFFFF#000000##FFFFFF
##335CA71.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3764AA
Deuteranopia (green-blind)
#2259A5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ca7;
/* rgb */ color: rgb(51, 92, 167);
/* oklch */ color: oklch(48.5% 0.129 261.4);
Tailwind
colors: {
  custom: {
    50: '#7889c1',
    500: '#335ca7',
    950: '#000000',
  },
}
SCSS
$custom: #335ca7;
$custom-light: #7889c1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca7",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 218.793,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48491,
    "c": 0.12911,
    "h": 261.4
  },
  "luminance": 0.11148
}

Semantic roles & 50–950 ramp

primary
#335CA7
secondary
#C0A676
accent
#A94BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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