#335C9A#335C9A

#335C9A is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.6% C 0.111 H 258.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#335C9A
RGBrgb(51, 92, 154)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 67%, 60%)
CMYKcmyk(66.9%, 40.3%, 0%, 39.6%)
CIE-LABlab(39.05, 6.53, -38.12)
CIE-LCHlch(39.05, 38.67, 279.72°)
OKLaboklab(47.64% -0.0221 -0.1085)
OKLCHoklch(47.64% 0.111 258.5)
XYZxyz(11.0230, 10.6901, 32.0481)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C9A #9A7133
analogous
#338F9A #335C9A #3E339A
triadic
#335C9A #9A335C #5C9A33
tetradic
#335C9A #9A338F #9A7133 #339A3E
square
#335C9A #9A338F #9A7133 #339A3E
split-complementary
#335C9A #9A3E33 #8F9A33
monochromatic
#15253E #24416C #335C9A #4879C2 #769AD2

Accessibility & contrast

On white

6.69
#335C9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#335C9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C9A
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C9A#FFFFFF#000000##FFFFFF
##335C9A1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40619C
Deuteranopia (green-blind)
#315899
Tritanopia (blue-blind)
#006A73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335c9a;
/* rgb */ color: rgb(51, 92, 154);
/* oklch */ color: oklch(47.6% 0.111 258.5);
Tailwind
colors: {
  custom: {
    50: '#7689b8',
    500: '#335c9a',
    950: '#000000',
  },
}
SCSS
$custom: #335c9a;
$custom-light: #7689b8;
$custom-dark: #000000;
JSON
{
  "hex": "#335c9a",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 154
  },
  "hsl": {
    "h": 216.117,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47642,
    "c": 0.11074,
    "h": 258.5
  },
  "luminance": 0.10691
}

Semantic roles & 50–950 ramp

primary
#335C9A
secondary
#BA9C6F
accent
#A24EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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