#335999#335999

#335999 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 46.9% C 0.113 H 260.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#335999
RGBrgb(51, 89, 153)
HSLhsl(218, 50%, 40%)
HSVhsv(218, 67%, 60%)
CMYKcmyk(66.7%, 41.8%, 0%, 40%)
CIE-LABlab(38.11, 8.10, -39.03)
CIE-LCHlch(38.11, 39.86, 281.73°)
OKLaboklab(46.89% -0.0192 -0.1112)
OKLCHoklch(46.89% 0.113 260.2)
XYZxyz(10.6853, 10.1474, 31.5263)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335999 #997333
analogous
#338C99 #335999 #403399
triadic
#335999 #993359 #599933
tetradic
#335999 #99338C #997333 #339940
square
#335999 #99338C #997333 #339940
split-complementary
#335999 #994033 #8C9933
monochromatic
#14243D #243E6B #335999 #4775C2 #7598D1

Accessibility & contrast

On white

6.93
#335999 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#335999 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335999
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335999#FFFFFF#000000##FFFFFF
##3359991.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9C
Deuteranopia (green-blind)
#2C5598
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335999;
/* rgb */ color: rgb(51, 89, 153);
/* oklch */ color: oklch(46.9% 0.113 260.2);
Tailwind
colors: {
  custom: {
    50: '#7687b7',
    500: '#335999',
    950: '#000000',
  },
}
SCSS
$custom: #335999;
$custom-light: #7687b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335999",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 153
  },
  "hsl": {
    "h": 217.647,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.46889,
    "c": 0.11286,
    "h": 260.2
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#335999
secondary
#B99D6E
accent
#A64EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335999

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

Preview Lab → · Contrast checker → · Palette generator →

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