#335CA3#335CA3

#335CA3 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.123 H 260.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#335CA3
RGBrgb(51, 92, 163)
HSLhsl(218, 52%, 42%)
HSVhsv(218, 69%, 64%)
CMYKcmyk(68.7%, 43.6%, 0%, 36.1%)
CIE-LABlab(39.58, 9.86, -42.65)
CIE-LCHlch(39.58, 43.77, 283.01°)
OKLaboklab(48.22% -0.0202 -0.1218)
OKLCHoklch(48.22% 0.123 260.6)
XYZxyz(11.8009, 11.0013, 36.1448)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA3 #A37A33
analogous
#3394A3 #335CA3 #4233A3
triadic
#335CA3 #A3335C #5CA333
tetradic
#335CA3 #A33394 #A37A33 #33A342
square
#335CA3 #A33394 #A37A33 #33A342
split-complementary
#335CA3 #A34233 #94A333
monochromatic
#162746 #244274 #335CA3 #4C79C7 #7B9CD6

Accessibility & contrast

On white

6.56
#335CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#335CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA3
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA3#FFFFFF#000000##FFFFFF
##335CA31.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A63A6
Deuteranopia (green-blind)
#2858A2
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ca3;
/* rgb */ color: rgb(51, 92, 163);
/* oklch */ color: oklch(48.2% 0.123 260.6);
Tailwind
colors: {
  custom: {
    50: '#7889bf',
    500: '#335ca3',
    950: '#000000',
  },
}
SCSS
$custom: #335ca3;
$custom-light: #7889bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca3",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 163
  },
  "hsl": {
    "h": 218.036,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.12346,
    "h": 260.6
  },
  "luminance": 0.11002
}

Semantic roles & 50–950 ramp

primary
#335CA3
secondary
#BEA373
accent
#A74CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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