#335A9F#335A9F

#335A9F is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.120 H 260.9°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#335A9F
RGBrgb(51, 90, 159)
HSLhsl(218, 51%, 41%)
HSVhsv(218, 68%, 62%)
CMYKcmyk(67.9%, 43.4%, 0%, 37.6%)
CIE-LABlab(38.76, 9.67, -41.58)
CIE-LCHlch(38.76, 42.69, 283.09°)
OKLaboklab(47.51% -0.019 -0.1187)
OKLCHoklch(47.51% 0.12 260.9)
XYZxyz(11.2772, 10.5182, 34.2301)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A9F #9F7833
analogous
#33909F #335A9F #42339F
triadic
#335A9F #9F335A #5A9F33
tetradic
#335A9F #9F3390 #9F7833 #339F42
square
#335A9F #9F3390 #9F7833 #339F42
split-complementary
#335A9F #9F4233 #909F33
monochromatic
#152642 #244071 #335A9F #4A77C5 #799AD4

Accessibility & contrast

On white

6.77
#335A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#335A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A9F
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A9F#FFFFFF#000000##FFFFFF
##335A9F1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A61A2
Deuteranopia (green-blind)
#28579E
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335a9f;
/* rgb */ color: rgb(51, 90, 159);
/* oklch */ color: oklch(47.5% 0.120 260.9);
Tailwind
colors: {
  custom: {
    50: '#7788bc',
    500: '#335a9f',
    950: '#000000',
  },
}
SCSS
$custom: #335a9f;
$custom-light: #7788bc;
$custom-dark: #000000;
JSON
{
  "hex": "#335a9f",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 159
  },
  "hsl": {
    "h": 218.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47508,
    "c": 0.12021,
    "h": 260.9
  },
  "luminance": 0.10519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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