#335CA6#335CA6

#335CA6 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.128 H 261.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#335CA6
RGBrgb(51, 92, 166)
HSLhsl(219, 53%, 43%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.3%, 44.6%, 0%, 34.9%)
CIE-LABlab(39.77, 10.97, -44.14)
CIE-LCHlch(39.77, 45.48, 283.96°)
OKLaboklab(48.42% -0.0196 -0.1262)
OKLCHoklch(48.42% 0.128 261.2)
XYZxyz(12.0729, 11.1100, 37.5772)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CA6 #A67D33
analogous
#3395A6 #335CA6 #4433A6
triadic
#335CA6 #A6335C #5CA633
tetradic
#335CA6 #A63395 #A67D33 #33A644
square
#335CA6 #A63395 #A67D33 #33A644
split-complementary
#335CA6 #A64433 #95A633
monochromatic
#162848 #254277 #335CA6 #4E79C9 #7C9DD7

Accessibility & contrast

On white

6.52
#335CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CA6
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CA6#FFFFFF#000000##FFFFFF
##335CA61.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A9
Deuteranopia (green-blind)
#2459A4
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ca6;
/* rgb */ color: rgb(51, 92, 166);
/* oklch */ color: oklch(48.4% 0.128 261.2);
Tailwind
colors: {
  custom: {
    50: '#7889c1',
    500: '#335ca6',
    950: '#000000',
  },
}
SCSS
$custom: #335ca6;
$custom-light: #7889c1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ca6",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 218.609,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48424,
    "c": 0.12769,
    "h": 261.2
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#335CA6
secondary
#C0A575
accent
#A94BDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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