#335F9D#335F9D

#335F9D is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.5% C 0.112 H 257.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#335F9D
RGBrgb(51, 95, 157)
HSLhsl(215, 51%, 41%)
HSVhsv(215, 68%, 62%)
CMYKcmyk(67.5%, 39.5%, 0%, 38.4%)
CIE-LABlab(40.12, 5.71, -38.22)
CIE-LCHlch(40.12, 38.65, 278.50°)
OKLaboklab(48.52% -0.0245 -0.1088)
OKLCHoklch(48.52% 0.112 257.3)
XYZxyz(11.5411, 11.3214, 33.4688)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F9D #9D7133
analogous
#33949D #335F9D #3C339D
triadic
#335F9D #9D335F #5F9D33
tetradic
#335F9D #9D3394 #9D7133 #339D3C
square
#335F9D #9D3394 #9D7133 #339D3C
split-complementary
#335F9D #9D3C33 #949D33
monochromatic
#152741 #24436F #335F9D #497CC4 #779DD3

Accessibility & contrast

On white

6.43
#335F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F9D
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F9D#FFFFFF#000000##FFFFFF
##335F9D1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43649F
Deuteranopia (green-blind)
#345A9C
Tritanopia (blue-blind)
#006D76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335f9d;
/* rgb */ color: rgb(51, 95, 157);
/* oklch */ color: oklch(48.5% 0.112 257.3);
Tailwind
colors: {
  custom: {
    50: '#768cba',
    500: '#335f9d',
    950: '#000000',
  },
}
SCSS
$custom: #335f9d;
$custom-light: #768cba;
$custom-dark: #000000;
JSON
{
  "hex": "#335f9d",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 215.094,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48524,
    "c": 0.11151,
    "h": 257.3
  },
  "luminance": 0.11323
}

Semantic roles & 50–950 ramp

primary
#335F9D
secondary
#BB9C70
accent
#A04DDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #335F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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