#335299#335299

#335299 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.122 H 264.4°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#335299
RGBrgb(51, 82, 153)
HSLhsl(222, 50%, 40%)
HSVhsv(222, 67%, 60%)
CMYKcmyk(66.7%, 46.4%, 0%, 40%)
CIE-LABlab(36.06, 12.68, -42.30)
CIE-LCHlch(36.06, 44.16, 286.69°)
OKLaboklab(45.31% -0.012 -0.1209)
OKLCHoklch(45.31% 0.122 264.4)
XYZxyz(10.1303, 9.0373, 31.3413)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335299 #997A33
analogous
#338599 #335299 #473399
triadic
#335299 #993352 #529933
tetradic
#335299 #993385 #997A33 #339947
square
#335299 #993385 #997A33 #339947
split-complementary
#335299 #994733 #859933
monochromatic
#14213D #24396B #335299 #476DC2 #7591D1

Accessibility & contrast

On white

7.48
#335299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#335299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335299
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335299#FFFFFF#000000##FFFFFF
##3352991.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9C
Deuteranopia (green-blind)
#1D5098
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335299;
/* rgb */ color: rgb(51, 82, 153);
/* oklch */ color: oklch(45.3% 0.122 264.4);
Tailwind
colors: {
  custom: {
    50: '#7682b7',
    500: '#335299',
    950: '#000000',
  },
}
SCSS
$custom: #335299;
$custom-light: #7682b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335299",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 221.765,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.12153,
    "h": 264.4
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#335299
secondary
#B9A36E
accent
#AF4EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335299

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

Preview Lab → · Contrast checker → · Palette generator →

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