#335D9B#335D9B

#335D9B is a mid, moderate blue. Relative luminance 0.109; OKLCH L 47.9% C 0.111 H 258.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#335D9B
RGBrgb(51, 93, 155)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 67%, 61%)
CMYKcmyk(67.1%, 40%, 0%, 39.2%)
CIE-LABlab(39.41, 6.26, -38.15)
CIE-LCHlch(39.41, 38.66, 279.31°)
OKLaboklab(47.94% -0.0229 -0.1086)
OKLCHoklch(47.94% 0.111 258.1)
XYZxyz(11.1939, 10.8980, 32.5176)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D9B #9B7133
analogous
#33919B #335D9B #3D339B
triadic
#335D9B #9B335D #5D9B33
tetradic
#335D9B #9B3391 #9B7133 #339B3D
square
#335D9B #9B3391 #9B7133 #339B3D
split-complementary
#335D9B #9B3D33 #919B33
monochromatic
#15263F #24416D #335D9B #487AC3 #769BD2

Accessibility & contrast

On white

6.60
#335D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#335D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D9B
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D9B#FFFFFF#000000##FFFFFF
##335D9B1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629D
Deuteranopia (green-blind)
#32589A
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335d9b;
/* rgb */ color: rgb(51, 93, 155);
/* oklch */ color: oklch(47.9% 0.111 258.1);
Tailwind
colors: {
  custom: {
    50: '#768ab9',
    500: '#335d9b',
    950: '#000000',
  },
}
SCSS
$custom: #335d9b;
$custom-light: #768ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#335d9b",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 155
  },
  "hsl": {
    "h": 215.769,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47936,
    "c": 0.11099,
    "h": 258.1
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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