#335D9A#335D9A

#335D9A is a mid, moderate blue. Relative luminance 0.109; OKLCH L 47.9% C 0.110 H 257.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#335D9A
RGBrgb(51, 93, 154)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 67%, 60%)
CMYKcmyk(66.9%, 39.6%, 0%, 39.6%)
CIE-LABlab(39.35, 5.89, -37.65)
CIE-LCHlch(39.35, 38.10, 278.89°)
OKLaboklab(47.87% -0.0232 -0.1071)
OKLCHoklch(47.87% 0.11 257.8)
XYZxyz(11.1102, 10.8645, 32.0771)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D9A #9A7033
analogous
#33909A #335D9A #3C339A
triadic
#335D9A #9A335D #5D9A33
tetradic
#335D9A #9A3390 #9A7033 #339A3C
square
#335D9A #9A3390 #9A7033 #339A3C
split-complementary
#335D9A #9A3C33 #909A33
monochromatic
#15253E #24416C #335D9A #487AC2 #769BD2

Accessibility & contrast

On white

6.62
#335D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D9A
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D9A#FFFFFF#000000##FFFFFF
##335D9A1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42629C
Deuteranopia (green-blind)
#335899
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335d9a;
/* rgb */ color: rgb(51, 93, 154);
/* oklch */ color: oklch(47.9% 0.110 257.8);
Tailwind
colors: {
  custom: {
    50: '#768ab8',
    500: '#335d9a',
    950: '#000000',
  },
}
SCSS
$custom: #335d9a;
$custom-light: #768ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#335d9a",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 154
  },
  "hsl": {
    "h": 215.534,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47874,
    "c": 0.10959,
    "h": 257.8
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#335D9A
secondary
#BA9B6F
accent
#A14EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335D9A

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

Preview Lab → · Contrast checker → · Palette generator →

#335D9A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva