#335B95#335B95

#335B95 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.1% C 0.105 H 257.7°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#335B95
RGBrgb(51, 91, 149)
HSLhsl(216, 49%, 39%)
HSVhsv(216, 66%, 58%)
CMYKcmyk(65.8%, 38.9%, 0%, 41.6%)
CIE-LABlab(38.47, 5.34, -36.04)
CIE-LCHlch(38.47, 36.43, 278.43°)
OKLaboklab(47.1% -0.0223 -0.1024)
OKLCHoklch(47.1% 0.105 257.7)
XYZxyz(10.5292, 10.3549, 29.8717)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B95 #956D33
analogous
#338C95 #335B95 #3C3395
triadic
#335B95 #95335B #5B9533
tetradic
#335B95 #95338C #956D33 #33953C
square
#335B95 #95338C #956D33 #33953C
split-complementary
#335B95 #953C33 #8C9533
monochromatic
#14233A #233F67 #335B95 #4677C0 #7399CF

Accessibility & contrast

On white

6.84
#335B95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#335B95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B95
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B95#FFFFFF#000000##FFFFFF
##335B951.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416097
Deuteranopia (green-blind)
#335694
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335b95;
/* rgb */ color: rgb(51, 91, 149);
/* oklch */ color: oklch(47.1% 0.105 257.7);
Tailwind
colors: {
  custom: {
    50: '#7589b4',
    500: '#335b95',
    950: '#000000',
  },
}
SCSS
$custom: #335b95;
$custom-light: #7589b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335b95",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 149
  },
  "hsl": {
    "h": 215.51,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47098,
    "c": 0.10482,
    "h": 257.7
  },
  "luminance": 0.10356
}

Semantic roles & 50–950 ramp

primary
#335B95
secondary
#B7996C
accent
#A14FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B95

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

Preview Lab → · Contrast checker → · Palette generator →

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