#335395#335395

#335395 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.3% C 0.114 H 263.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#335395
RGBrgb(51, 83, 149)
HSLhsl(220, 49%, 39%)
HSVhsv(220, 66%, 58%)
CMYKcmyk(65.8%, 44.3%, 0%, 41.6%)
CIE-LABlab(36.10, 10.54, -39.82)
CIE-LCHlch(36.10, 41.19, 284.83°)
OKLaboklab(45.26% -0.0137 -0.1136)
OKLCHoklch(45.26% 0.114 263.1)
XYZxyz(9.8814, 9.0593, 29.6558)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335395 #957533
analogous
#338495 #335395 #443395
triadic
#335395 #953353 #539533
tetradic
#335395 #953384 #957533 #339544
square
#335395 #953384 #957533 #339544
split-complementary
#335395 #954433 #849533
monochromatic
#14203A #233A67 #335395 #466DC0 #7391CF

Accessibility & contrast

On white

7.47
#335395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335395
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335395#FFFFFF#000000##FFFFFF
##3353951.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A98
Deuteranopia (green-blind)
#255194
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335395;
/* rgb */ color: rgb(51, 83, 149);
/* oklch */ color: oklch(45.3% 0.114 263.1);
Tailwind
colors: {
  custom: {
    50: '#7582b4',
    500: '#335395',
    950: '#000000',
  },
}
SCSS
$custom: #335395;
$custom-light: #7582b4;
$custom-dark: #000000;
JSON
{
  "hex": "#335395",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 149
  },
  "hsl": {
    "h": 220.408,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45261,
    "c": 0.11445,
    "h": 263.1
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#335395
secondary
#B79F6C
accent
#AC4FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335395

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

Preview Lab → · Contrast checker → · Palette generator →

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