#335498#335498

#335498 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.7% C 0.118 H 263.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#335498
RGBrgb(51, 84, 152)
HSLhsl(220, 50%, 40%)
HSVhsv(220, 66%, 60%)
CMYKcmyk(66.4%, 44.7%, 0%, 40.4%)
CIE-LABlab(36.58, 11.00, -40.87)
CIE-LCHlch(36.58, 42.32, 285.06°)
OKLaboklab(45.69% -0.0142 -0.1167)
OKLCHoklch(45.69% 0.118 263.1)
XYZxyz(10.2011, 9.3105, 30.9592)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335498 #987733
analogous
#338798 #335498 #443398
triadic
#335498 #983354 #549833
tetradic
#335498 #983387 #987733 #339844
square
#335498 #983387 #987733 #339844
split-complementary
#335498 #984433 #879833
monochromatic
#14213C #243B6A #335498 #476FC1 #7593D1

Accessibility & contrast

On white

7.34
#335498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335498
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335498#FFFFFF#000000##FFFFFF
##3354981.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9B
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#00646E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #335498;
/* rgb */ color: rgb(51, 84, 152);
/* oklch */ color: oklch(45.7% 0.118 263.1);
Tailwind
colors: {
  custom: {
    50: '#7683b7',
    500: '#335498',
    950: '#000000',
  },
}
SCSS
$custom: #335498;
$custom-light: #7683b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335498",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 152
  },
  "hsl": {
    "h": 220.396,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45688,
    "c": 0.11755,
    "h": 263.1
  },
  "luminance": 0.09311
}

Semantic roles & 50–950 ramp

primary
#335498
secondary
#B9A06E
accent
#AC4FD9
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335498

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

Preview Lab → · Contrast checker → · Palette generator →

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