#335F9F#335F9F

#335F9F is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.6% C 0.114 H 257.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#335F9F
RGBrgb(51, 95, 159)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.9%, 40.3%, 0%, 37.6%)
CIE-LABlab(40.23, 6.45, -39.24)
CIE-LCHlch(40.23, 39.76, 279.33°)
OKLaboklab(48.65% -0.0241 -0.1117)
OKLCHoklch(48.65% 0.114 257.8)
XYZxyz(11.7132, 11.3903, 34.3754)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F9F #9F7333
analogous
#33959F #335F9F #3D339F
triadic
#335F9F #9F335F #5F9F33
tetradic
#335F9F #9F3395 #9F7333 #339F3D
square
#335F9F #9F3395 #9F7333 #339F3D
split-complementary
#335F9F #9F3D33 #959F33
monochromatic
#152842 #244371 #335F9F #4A7CC5 #799ED4

Accessibility & contrast

On white

6.41
#335F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#335F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F9F
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F9F#FFFFFF#000000##FFFFFF
##335F9F1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4264A2
Deuteranopia (green-blind)
#325A9E
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335f9f;
/* rgb */ color: rgb(51, 95, 159);
/* oklch */ color: oklch(48.6% 0.114 257.8);
Tailwind
colors: {
  custom: {
    50: '#778cbc',
    500: '#335f9f',
    950: '#000000',
  },
}
SCSS
$custom: #335f9f;
$custom-light: #778cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#335f9f",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 159
  },
  "hsl": {
    "h": 215.556,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48649,
    "c": 0.1143,
    "h": 257.8
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#335F9F
secondary
#BC9E71
accent
#A14DDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #335F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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