#335497#335497

#335497 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.6% C 0.116 H 262.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#335497
RGBrgb(51, 84, 151)
HSLhsl(220, 50%, 40%)
HSVhsv(220, 66%, 59%)
CMYKcmyk(66.2%, 44.4%, 0%, 40.8%)
CIE-LABlab(36.51, 10.63, -40.36)
CIE-LCHlch(36.51, 41.74, 284.75°)
OKLaboklab(45.62% -0.0144 -0.1152)
OKLCHoklch(45.62% 0.116 262.9)
XYZxyz(10.1195, 9.2779, 30.5297)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335497 #977633
analogous
#338697 #335497 #443397
triadic
#335497 #973354 #549733
tetradic
#335497 #973386 #977633 #339744
square
#335497 #973386 #977633 #339744
split-complementary
#335497 #974433 #869733
monochromatic
#14213C #243B69 #335497 #476FC1 #7493D0

Accessibility & contrast

On white

7.35
#335497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#335497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335497
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335497#FFFFFF#000000##FFFFFF
##3354971.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9A
Deuteranopia (green-blind)
#245296
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #335497;
/* rgb */ color: rgb(51, 84, 151);
/* oklch */ color: oklch(45.6% 0.116 262.9);
Tailwind
colors: {
  custom: {
    50: '#7583b6',
    500: '#335497',
    950: '#000000',
  },
}
SCSS
$custom: #335497;
$custom-light: #7583b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335497",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 151
  },
  "hsl": {
    "h": 220.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45621,
    "c": 0.1161,
    "h": 262.9
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#335497
secondary
#B8A06D
accent
#AB4FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335497

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

Preview Lab → · Contrast checker → · Palette generator →

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