#335197#335197

#335197 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.9% C 0.120 H 264.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#335197
RGBrgb(51, 81, 151)
HSLhsl(222, 50%, 40%)
HSVhsv(222, 66%, 59%)
CMYKcmyk(66.2%, 46.4%, 0%, 40.8%)
CIE-LABlab(35.64, 12.60, -41.76)
CIE-LCHlch(35.64, 43.62, 286.79°)
OKLaboklab(44.95% -0.0113 -0.1194)
OKLCHoklch(44.95% 0.12 264.6)
XYZxyz(9.8916, 8.8221, 30.4537)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335197 #977933
analogous
#338397 #335197 #473397
triadic
#335197 #973351 #519733
tetradic
#335197 #973383 #977933 #339747
square
#335197 #973383 #977933 #339747
split-complementary
#335197 #974733 #839733
monochromatic
#14203C #243869 #335197 #476BC1 #7490D0

Accessibility & contrast

On white

7.60
#335197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335197
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335197#FFFFFF#000000##FFFFFF
##3351971.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#1D5096
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335197;
/* rgb */ color: rgb(51, 81, 151);
/* oklch */ color: oklch(44.9% 0.120 264.6);
Tailwind
colors: {
  custom: {
    50: '#7681b6',
    500: '#335197',
    950: '#000000',
  },
}
SCSS
$custom: #335197;
$custom-light: #7681b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335197",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 222,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44949,
    "c": 0.11989,
    "h": 264.6
  },
  "luminance": 0.08823
}

Semantic roles & 50–950 ramp

primary
#335197
secondary
#B8A26D
accent
#B04FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335197

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

Preview Lab → · Contrast checker → · Palette generator →

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