#335B9A#335B9A

#335B9A is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.4% C 0.112 H 259.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#335B9A
RGBrgb(51, 91, 154)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 67%, 60%)
CMYKcmyk(66.9%, 40.9%, 0%, 39.6%)
CIE-LABlab(38.76, 7.18, -38.59)
CIE-LCHlch(38.76, 39.25, 280.53°)
OKLaboklab(47.41% -0.0211 -0.1099)
OKLCHoklch(47.41% 0.112 259.1)
XYZxyz(10.9370, 10.5180, 32.0194)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B9A #9A7233
analogous
#338E9A #335B9A #3E339A
triadic
#335B9A #9A335B #5B9A33
tetradic
#335B9A #9A338E #9A7233 #339A3E
square
#335B9A #9A338E #9A7233 #339A3E
split-complementary
#335B9A #9A3E33 #8E9A33
monochromatic
#15253E #24406C #335B9A #4877C2 #7699D2

Accessibility & contrast

On white

6.77
#335B9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#335B9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B9A
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B9A#FFFFFF#000000##FFFFFF
##335B9A1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335b9a;
/* rgb */ color: rgb(51, 91, 154);
/* oklch */ color: oklch(47.4% 0.112 259.1);
Tailwind
colors: {
  custom: {
    50: '#7689b8',
    500: '#335b9a',
    950: '#000000',
  },
}
SCSS
$custom: #335b9a;
$custom-light: #7689b8;
$custom-dark: #000000;
JSON
{
  "hex": "#335b9a",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 154
  },
  "hsl": {
    "h": 216.699,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47412,
    "c": 0.11191,
    "h": 259.1
  },
  "luminance": 0.10519
}

Semantic roles & 50–950 ramp

primary
#335B9A
secondary
#BA9D6F
accent
#A34EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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