#335899#335899

#335899 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.7% C 0.114 H 260.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#335899
RGBrgb(51, 88, 153)
HSLhsl(218, 50%, 40%)
HSVhsv(218, 67%, 60%)
CMYKcmyk(66.7%, 42.5%, 0%, 40%)
CIE-LABlab(37.81, 8.75, -39.50)
CIE-LCHlch(37.81, 40.46, 282.49°)
OKLaboklab(46.66% -0.0181 -0.1126)
OKLCHoklch(46.66% 0.114 260.8)
XYZxyz(10.6027, 9.9821, 31.4988)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335899 #997433
analogous
#338B99 #335899 #413399
triadic
#335899 #993358 #589933
tetradic
#335899 #99338B #997433 #339941
square
#335899 #99338B #997433 #339941
split-complementary
#335899 #994133 #8B9933
monochromatic
#14233D #243E6B #335899 #4774C2 #7597D1

Accessibility & contrast

On white

7.01
#335899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#335899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335899
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335899#FFFFFF#000000##FFFFFF
##3358991.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9C
Deuteranopia (green-blind)
#2A5598
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335899;
/* rgb */ color: rgb(51, 88, 153);
/* oklch */ color: oklch(46.7% 0.114 260.8);
Tailwind
colors: {
  custom: {
    50: '#7686b7',
    500: '#335899',
    950: '#000000',
  },
}
SCSS
$custom: #335899;
$custom-light: #7686b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335899",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 218.235,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.4666,
    "c": 0.11406,
    "h": 260.8
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#335899
secondary
#B99E6E
accent
#A74EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335899

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

Preview Lab → · Contrast checker → · Palette generator →

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