#335CA8#335CA8

#335CA8 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.6% C 0.131 H 261.5°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#335CA8
RGBrgb(51, 92, 168)
HSLhsl(219, 53%, 43%)
HSVhsv(219, 70%, 66%)
CMYKcmyk(69.6%, 45.2%, 0%, 34.1%)
CIE-LABlab(39.89, 11.72, -45.13)
CIE-LCHlch(39.89, 46.63, 284.55°)
OKLaboklab(48.56% -0.0192 -0.1291)
OKLCHoklch(48.56% 0.131 261.5)
XYZxyz(12.2578, 11.1840, 38.5509)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA8 #A87F33
analogous
#3397A8 #335CA8 #4433A8
triadic
#335CA8 #A8335C #5CA833
tetradic
#335CA8 #A83397 #A87F33 #33A844
square
#335CA8 #A83397 #A87F33 #33A844
split-complementary
#335CA8 #A84433 #97A833
monochromatic
#16294A #254279 #335CA8 #4F7AC9 #7E9DD8

Accessibility & contrast

On white

6.49
#335CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA8
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA8#FFFFFF#000000##FFFFFF
##335CA81.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#2159A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ca8;
/* rgb */ color: rgb(51, 92, 168);
/* oklch */ color: oklch(48.6% 0.131 261.5);
Tailwind
colors: {
  custom: {
    50: '#7889c2',
    500: '#335ca8',
    950: '#000000',
  },
}
SCSS
$custom: #335ca8;
$custom-light: #7889c2;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca8",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 218.974,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48559,
    "c": 0.13051,
    "h": 261.5
  },
  "luminance": 0.11185
}

Semantic roles & 50–950 ramp

primary
#335CA8
secondary
#C1A776
accent
#AA4BDD
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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