#335B9B#335B9B

#335B9B is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.5% C 0.113 H 259.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#335B9B
RGBrgb(51, 91, 155)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 67%, 61%)
CMYKcmyk(67.1%, 41.3%, 0%, 39.2%)
CIE-LABlab(38.81, 7.54, -39.10)
CIE-LCHlch(38.81, 39.82, 280.92°)
OKLaboklab(47.48% -0.0208 -0.1114)
OKLCHoklch(47.48% 0.113 259.4)
XYZxyz(11.0206, 10.5515, 32.4598)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B9B #9B7333
analogous
#338F9B #335B9B #3F339B
triadic
#335B9B #9B335B #5B9B33
tetradic
#335B9B #9B338F #9B7333 #339B3F
square
#335B9B #9B338F #9B7333 #339B3F
split-complementary
#335B9B #9B3F33 #8F9B33
monochromatic
#15253F #24406D #335B9B #4877C3 #769AD2

Accessibility & contrast

On white

6.75
#335B9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#335B9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B9B
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B9B#FFFFFF#000000##FFFFFF
##335B9B1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E619E
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#006A73
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335b9b;
/* rgb */ color: rgb(51, 91, 155);
/* oklch */ color: oklch(47.5% 0.113 259.4);
Tailwind
colors: {
  custom: {
    50: '#7689b9',
    500: '#335b9b',
    950: '#000000',
  },
}
SCSS
$custom: #335b9b;
$custom-light: #7689b9;
$custom-dark: #000000;
JSON
{
  "hex": "#335b9b",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 155
  },
  "hsl": {
    "h": 216.923,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47476,
    "c": 0.11332,
    "h": 259.4
  },
  "luminance": 0.10553
}

Semantic roles & 50–950 ramp

primary
#335B9B
secondary
#BA9E6F
accent
#A44EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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