#335295#335295

#335295 is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.0% C 0.116 H 263.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#335295
RGBrgb(51, 82, 149)
HSLhsl(221, 49%, 39%)
HSVhsv(221, 66%, 58%)
CMYKcmyk(65.8%, 45%, 0%, 41.6%)
CIE-LABlab(35.81, 11.20, -40.29)
CIE-LCHlch(35.81, 41.81, 285.54°)
OKLaboklab(45.04% -0.0127 -0.115)
OKLCHoklch(45.04% 0.116 263.7)
XYZxyz(9.8055, 8.9074, 29.6305)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335295 #957633
analogous
#338395 #335295 #453395
triadic
#335295 #953352 #529533
tetradic
#335295 #953383 #957633 #339545
square
#335295 #953383 #957633 #339545
split-complementary
#335295 #954533 #839533
monochromatic
#14203A #233967 #335295 #466CC0 #7390CF

Accessibility & contrast

On white

7.55
#335295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#335295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335295
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335295#FFFFFF#000000##FFFFFF
##3352951.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325998
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335295;
/* rgb */ color: rgb(51, 82, 149);
/* oklch */ color: oklch(45.0% 0.116 263.7);
Tailwind
colors: {
  custom: {
    50: '#7582b4',
    500: '#335295',
    950: '#000000',
  },
}
SCSS
$custom: #335295;
$custom-light: #7582b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335295",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 149
  },
  "hsl": {
    "h": 221.02,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.11571,
    "h": 263.7
  },
  "luminance": 0.08908
}

Semantic roles & 50–950 ramp

primary
#335295
secondary
#B7A06C
accent
#AD4FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335295

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

Preview Lab → · Contrast checker → · Palette generator →

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