#335296#335296

#335296 is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.1% C 0.117 H 263.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#335296
RGBrgb(51, 82, 150)
HSLhsl(221, 49%, 39%)
HSVhsv(221, 66%, 59%)
CMYKcmyk(66%, 45.3%, 0%, 41.2%)
CIE-LABlab(35.87, 11.57, -40.79)
CIE-LCHlch(35.87, 42.40, 285.84°)
OKLaboklab(45.1% -0.0125 -0.1165)
OKLCHoklch(45.1% 0.117 263.9)
XYZxyz(9.8856, 8.9395, 30.0528)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335296 #967733
analogous
#338496 #335296 #463396
triadic
#335296 #963352 #529633
tetradic
#335296 #963384 #967733 #339646
square
#335296 #963384 #967733 #339646
split-complementary
#335296 #964633 #849633
monochromatic
#14203B #233968 #335296 #466CC0 #7491D0

Accessibility & contrast

On white

7.53
#335296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335296
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335296#FFFFFF#000000##FFFFFF
##3352961.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325999
Deuteranopia (green-blind)
#215095
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335296;
/* rgb */ color: rgb(51, 82, 150);
/* oklch */ color: oklch(45.1% 0.117 263.9);
Tailwind
colors: {
  custom: {
    50: '#7582b5',
    500: '#335296',
    950: '#000000',
  },
}
SCSS
$custom: #335296;
$custom-light: #7582b5;
$custom-dark: #000000;
JSON
{
  "hex": "#335296",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 150
  },
  "hsl": {
    "h": 221.212,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45104,
    "c": 0.11717,
    "h": 263.9
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#335296
secondary
#B8A06D
accent
#AE4FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335296

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

Preview Lab → · Contrast checker → · Palette generator →

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