#335A9C#335A9C

#335A9C is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.3% C 0.116 H 260.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#335A9C
RGBrgb(51, 90, 156)
HSLhsl(218, 51%, 41%)
HSVhsv(218, 67%, 61%)
CMYKcmyk(67.3%, 42.3%, 0%, 38.8%)
CIE-LABlab(38.58, 8.56, -40.07)
CIE-LCHlch(38.58, 40.98, 282.06°)
OKLaboklab(47.31% -0.0196 -0.1143)
OKLCHoklch(47.31% 0.116 260.3)
XYZxyz(11.0200, 10.4154, 32.8756)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A9C #9C7533
analogous
#338E9C #335A9C #40339C
triadic
#335A9C #9C335A #5A9C33
tetradic
#335A9C #9C338E #9C7533 #339C40
square
#335A9C #9C338E #9C7533 #339C40
split-complementary
#335A9C #9C4033 #8E9C33
monochromatic
#152540 #243F6E #335A9C #4976C3 #7799D3

Accessibility & contrast

On white

6.81
#335A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335A9C
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A9C#FFFFFF#000000##FFFFFF
##335A9C1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335a9c;
/* rgb */ color: rgb(51, 90, 156);
/* oklch */ color: oklch(47.3% 0.116 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688b9',
    500: '#335a9c',
    950: '#000000',
  },
}
SCSS
$custom: #335a9c;
$custom-light: #7688b9;
$custom-dark: #000000;
JSON
{
  "hex": "#335a9c",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 156
  },
  "hsl": {
    "h": 217.714,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47312,
    "c": 0.11594,
    "h": 260.3
  },
  "luminance": 0.10416
}

Semantic roles & 50–950 ramp

primary
#335A9C
secondary
#BB9F70
accent
#A64EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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