#335896#335896

#335896 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.5% C 0.110 H 260.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#335896
RGBrgb(51, 88, 150)
HSLhsl(218, 49%, 39%)
HSVhsv(218, 66%, 59%)
CMYKcmyk(66%, 41.3%, 0%, 41.2%)
CIE-LABlab(37.63, 7.65, -37.97)
CIE-LCHlch(37.63, 38.73, 281.38°)
OKLaboklab(46.47% -0.0188 -0.1081)
OKLCHoklch(46.47% 0.11 260.1)
XYZxyz(10.3580, 9.8843, 30.2102)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335896 #967133
analogous
#338A96 #335896 #403396
triadic
#335896 #963358 #589633
tetradic
#335896 #96338A #967133 #339640
square
#335896 #96338A #967133 #339640
split-complementary
#335896 #964033 #8A9633
monochromatic
#14223B #233D68 #335896 #4674C0 #7496D0

Accessibility & contrast

On white

7.05
#335896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#335896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335896
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335896#FFFFFF#000000##FFFFFF
##3358961.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E98
Deuteranopia (green-blind)
#2D5495
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335896;
/* rgb */ color: rgb(51, 88, 150);
/* oklch */ color: oklch(46.5% 0.110 260.1);
Tailwind
colors: {
  custom: {
    50: '#7586b5',
    500: '#335896',
    950: '#000000',
  },
}
SCSS
$custom: #335896;
$custom-light: #7586b5;
$custom-dark: #000000;
JSON
{
  "hex": "#335896",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 150
  },
  "hsl": {
    "h": 217.576,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46467,
    "c": 0.10976,
    "h": 260.1
  },
  "luminance": 0.09885
}

Semantic roles & 50–950 ramp

primary
#335896
secondary
#B89C6D
accent
#A54FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335896

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

Preview Lab → · Contrast checker → · Palette generator →

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