#335298#335298

#335298 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.120 H 264.2°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#335298
RGBrgb(51, 82, 152)
HSLhsl(222, 50%, 40%)
HSVhsv(222, 66%, 60%)
CMYKcmyk(66.4%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.99, 12.31, -41.80)
CIE-LCHlch(35.99, 43.58, 286.41°)
OKLaboklab(45.24% -0.0121 -0.1195)
OKLCHoklch(45.24% 0.12 264.2)
XYZxyz(10.0481, 9.0044, 30.9082)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335298 #987933
analogous
#338598 #335298 #463398
triadic
#335298 #983352 #529833
tetradic
#335298 #983385 #987933 #339846
square
#335298 #983385 #987933 #339846
split-complementary
#335298 #984633 #859833
monochromatic
#14213C #24396A #335298 #476CC1 #7591D1

Accessibility & contrast

On white

7.50
#335298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#335298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335298
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335298#FFFFFF#000000##FFFFFF
##3352981.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305A9B
Deuteranopia (green-blind)
#1E5097
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335298;
/* rgb */ color: rgb(51, 82, 152);
/* oklch */ color: oklch(45.2% 0.120 264.2);
Tailwind
colors: {
  custom: {
    50: '#7682b7',
    500: '#335298',
    950: '#000000',
  },
}
SCSS
$custom: #335298;
$custom-light: #7682b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335298",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 221.584,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.12007,
    "h": 264.2
  },
  "luminance": 0.09005
}

Semantic roles & 50–950 ramp

primary
#335298
secondary
#B9A26E
accent
#AF4FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335298

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

Preview Lab → · Contrast checker → · Palette generator →

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