#335795#335795

#335795 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.110 H 260.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#335795
RGBrgb(51, 87, 149)
HSLhsl(218, 49%, 39%)
HSVhsv(218, 66%, 58%)
CMYKcmyk(65.8%, 41.6%, 0%, 41.6%)
CIE-LABlab(37.28, 7.93, -37.94)
CIE-LCHlch(37.28, 38.75, 281.80°)
OKLaboklab(46.17% -0.018 -0.108)
OKLCHoklch(46.17% 0.11 260.6)
XYZxyz(10.1963, 9.6892, 29.7608)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335795 #957133
analogous
#338895 #335795 #403395
triadic
#335795 #953357 #579533
tetradic
#335795 #953388 #957133 #339540
square
#335795 #953388 #957133 #339540
split-complementary
#335795 #954033 #889533
monochromatic
#14223A #233C67 #335795 #4672C0 #7395CF

Accessibility & contrast

On white

7.15
#335795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#335795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335795
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335795#FFFFFF#000000##FFFFFF
##3357951.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D97
Deuteranopia (green-blind)
#2C5494
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335795;
/* rgb */ color: rgb(51, 87, 149);
/* oklch */ color: oklch(46.2% 0.110 260.6);
Tailwind
colors: {
  custom: {
    50: '#7586b4',
    500: '#335795',
    950: '#000000',
  },
}
SCSS
$custom: #335795;
$custom-light: #7586b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335795",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 217.959,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46173,
    "c": 0.10952,
    "h": 260.6
  },
  "luminance": 0.0969
}

Semantic roles & 50–950 ramp

primary
#335795
secondary
#B79C6C
accent
#A64FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335795

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

Preview Lab → · Contrast checker → · Palette generator →

#335795 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva