#335B97#335B97

#335B97 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.2% C 0.108 H 258.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#335B97
RGBrgb(51, 91, 151)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 66%, 59%)
CMYKcmyk(66.2%, 39.7%, 0%, 40.8%)
CIE-LABlab(38.58, 6.07, -37.06)
CIE-LCHlch(38.58, 37.56, 279.31°)
OKLaboklab(47.22% -0.0218 -0.1054)
OKLCHoklch(47.22% 0.108 258.3)
XYZxyz(10.6902, 10.4193, 30.7199)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B97 #976F33
analogous
#338D97 #335B97 #3D3397
triadic
#335B97 #97335B #5B9733
tetradic
#335B97 #97338D #976F33 #33973D
square
#335B97 #97338D #976F33 #33973D
split-complementary
#335B97 #973D33 #8D9733
monochromatic
#14243C #243F69 #335B97 #4777C1 #7499D0

Accessibility & contrast

On white

6.81
#335B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#335B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B97
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B97#FFFFFF#000000##FFFFFF
##335B971.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406099
Deuteranopia (green-blind)
#325796
Tritanopia (blue-blind)
#006971
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335b97;
/* rgb */ color: rgb(51, 91, 151);
/* oklch */ color: oklch(47.2% 0.108 258.3);
Tailwind
colors: {
  custom: {
    50: '#7589b6',
    500: '#335b97',
    950: '#000000',
  },
}
SCSS
$custom: #335b97;
$custom-light: #7589b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335b97",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 216,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47223,
    "c": 0.10765,
    "h": 258.3
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

primary
#335B97
secondary
#B89A6D
accent
#A24FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B97

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

Preview Lab → · Contrast checker → · Palette generator →

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