#335398#335398

#335398 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.5% C 0.119 H 263.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#335398
RGBrgb(51, 83, 152)
HSLhsl(221, 50%, 40%)
HSVhsv(221, 66%, 60%)
CMYKcmyk(66.4%, 45.4%, 0%, 40.4%)
CIE-LABlab(36.28, 11.65, -41.33)
CIE-LCHlch(36.28, 42.95, 285.75°)
OKLaboklab(45.46% -0.0132 -0.1181)
OKLCHoklch(45.46% 0.119 263.6)
XYZxyz(10.1240, 9.1564, 30.9335)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335398 #987833
analogous
#338698 #335398 #453398
triadic
#335398 #983353 #539833
tetradic
#335398 #983386 #987833 #339845
square
#335398 #983386 #987833 #339845
split-complementary
#335398 #984533 #869833
monochromatic
#14213C #243A6A #335398 #476EC1 #7592D1

Accessibility & contrast

On white

7.42
#335398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#335398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335398
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335398#FFFFFF#000000##FFFFFF
##3353981.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335398;
/* rgb */ color: rgb(51, 83, 152);
/* oklch */ color: oklch(45.5% 0.119 263.6);
Tailwind
colors: {
  custom: {
    50: '#7682b7',
    500: '#335398',
    950: '#000000',
  },
}
SCSS
$custom: #335398;
$custom-light: #7682b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335398",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 220.99,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45464,
    "c": 0.11881,
    "h": 263.6
  },
  "luminance": 0.09157
}

Semantic roles & 50–950 ramp

primary
#335398
secondary
#B9A16E
accent
#AD4FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335398

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

Preview Lab → · Contrast checker → · Palette generator →

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