#335CA4#335CA4

#335CA4 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.125 H 260.8°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#335CA4
RGBrgb(51, 92, 164)
HSLhsl(218, 53%, 42%)
HSVhsv(218, 69%, 64%)
CMYKcmyk(68.9%, 43.9%, 0%, 35.7%)
CIE-LABlab(39.64, 10.23, -43.15)
CIE-LCHlch(39.64, 44.34, 283.34°)
OKLaboklab(48.29% -0.02 -0.1233)
OKLCHoklch(48.29% 0.125 260.8)
XYZxyz(11.8908, 11.0372, 36.6185)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA4 #A47B33
analogous
#3395A4 #335CA4 #4333A4
triadic
#335CA4 #A4335C #5CA433
tetradic
#335CA4 #A43395 #A47B33 #33A443
square
#335CA4 #A43395 #A47B33 #33A443
split-complementary
#335CA4 #A44333 #95A433
monochromatic
#162847 #244275 #335CA4 #4D79C8 #7B9CD6

Accessibility & contrast

On white

6.55
#335CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#335CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA4
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA4#FFFFFF#000000##FFFFFF
##335CA41.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A63A7
Deuteranopia (green-blind)
#2659A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ca4;
/* rgb */ color: rgb(51, 92, 164);
/* oklch */ color: oklch(48.3% 0.125 260.8);
Tailwind
colors: {
  custom: {
    50: '#7889bf',
    500: '#335ca4',
    950: '#000000',
  },
}
SCSS
$custom: #335ca4;
$custom-light: #7889bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca4",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 218.23,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4829,
    "c": 0.12488,
    "h": 260.8
  },
  "luminance": 0.11038
}

Semantic roles & 50–950 ramp

primary
#335CA4
secondary
#BFA474
accent
#A84CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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