#335A9B#335A9B

#335A9B is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.2% C 0.115 H 260.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#335A9B
RGBrgb(51, 90, 155)
HSLhsl(218, 50%, 40%)
HSVhsv(218, 67%, 61%)
CMYKcmyk(67.1%, 41.9%, 0%, 39.2%)
CIE-LABlab(38.52, 8.19, -39.57)
CIE-LCHlch(38.52, 40.41, 281.70°)
OKLaboklab(47.25% -0.0198 -0.1128)
OKLCHoklch(47.25% 0.115 260)
XYZxyz(10.9357, 10.3816, 32.4315)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A9B #9B7433
analogous
#338E9B #335A9B #40339B
triadic
#335A9B #9B335A #5A9B33
tetradic
#335A9B #9B338E #9B7433 #339B40
square
#335A9B #9B338E #9B7433 #339B40
split-complementary
#335A9B #9B4033 #8E9B33
monochromatic
#15253F #243F6D #335A9B #4876C3 #7699D2

Accessibility & contrast

On white

6.83
#335A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#335A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A9B
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A9B#FFFFFF#000000##FFFFFF
##335A9B1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C609E
Deuteranopia (green-blind)
#2C569A
Tritanopia (blue-blind)
#006973
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335a9b;
/* rgb */ color: rgb(51, 90, 155);
/* oklch */ color: oklch(47.2% 0.115 260.0);
Tailwind
colors: {
  custom: {
    50: '#7688b9',
    500: '#335a9b',
    950: '#000000',
  },
}
SCSS
$custom: #335a9b;
$custom-light: #7688b9;
$custom-dark: #000000;
JSON
{
  "hex": "#335a9b",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 155
  },
  "hsl": {
    "h": 217.5,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47247,
    "c": 0.11452,
    "h": 260
  },
  "luminance": 0.10383
}

Semantic roles & 50–950 ramp

primary
#335A9B
secondary
#BA9E6F
accent
#A54EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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