#335B9F#335B9F

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

Color values

HEX#335B9F
RGBrgb(51, 91, 159)
HSLhsl(218, 51%, 41%)
HSVhsv(218, 68%, 62%)
CMYKcmyk(67.9%, 42.8%, 0%, 37.6%)
CIE-LABlab(39.05, 9.02, -41.12)
CIE-LCHlch(39.05, 42.09, 282.38°)
OKLaboklab(47.73% -0.02 -0.1173)
OKLCHoklch(47.73% 0.119 260.3)
XYZxyz(11.3621, 10.6881, 34.2584)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B9F #9F7733
analogous
#33919F #335B9F #41339F
triadic
#335B9F #9F335B #5B9F33
tetradic
#335B9F #9F3391 #9F7733 #339F41
square
#335B9F #9F3391 #9F7733 #339F41
split-complementary
#335B9F #9F4133 #919F33
monochromatic
#152642 #244071 #335B9F #4A78C5 #799AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335B9F#FFFFFF#000000##FFFFFF
##335B9F1.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)
#3B61A2
Deuteranopia (green-blind)
#2A579E
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335b9f;
/* rgb */ color: rgb(51, 91, 159);
/* oklch */ color: oklch(47.7% 0.119 260.3);
Tailwind
colors: {
  custom: {
    50: '#7788bc',
    500: '#335b9f',
    950: '#000000',
  },
}
SCSS
$custom: #335b9f;
$custom-light: #7788bc;
$custom-dark: #000000;
JSON
{
  "hex": "#335b9f",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 159
  },
  "hsl": {
    "h": 217.778,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.119,
    "h": 260.3
  },
  "luminance": 0.10689
}

Semantic roles & 50–950 ramp

primary
#335B9F
secondary
#BCA171
accent
#A64DDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #335B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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