#335A9A#335A9A

#335A9A is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.2% C 0.113 H 259.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#335A9A
RGBrgb(51, 90, 154)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 67%, 60%)
CMYKcmyk(66.9%, 41.6%, 0%, 39.6%)
CIE-LABlab(38.46, 7.82, -39.06)
CIE-LCHlch(38.46, 39.84, 281.32°)
OKLaboklab(47.18% -0.02 -0.1113)
OKLCHoklch(47.18% 0.113 259.8)
XYZxyz(10.8521, 10.3482, 31.9911)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A9A #9A7333
analogous
#338D9A #335A9A #40339A
triadic
#335A9A #9A335A #5A9A33
tetradic
#335A9A #9A338D #9A7333 #339A40
square
#335A9A #9A338D #9A7333 #339A40
split-complementary
#335A9A #9A4033 #8D9A33
monochromatic
#15243E #243F6C #335A9A #4876C2 #7699D2

Accessibility & contrast

On white

6.84
#335A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#335A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A9A
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A9A#FFFFFF#000000##FFFFFF
##335A9A1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D609D
Deuteranopia (green-blind)
#2D5699
Tritanopia (blue-blind)
#006972
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335a9a;
/* rgb */ color: rgb(51, 90, 154);
/* oklch */ color: oklch(47.2% 0.113 259.8);
Tailwind
colors: {
  custom: {
    50: '#7688b8',
    500: '#335a9a',
    950: '#000000',
  },
}
SCSS
$custom: #335a9a;
$custom-light: #7688b8;
$custom-dark: #000000;
JSON
{
  "hex": "#335a9a",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 154
  },
  "hsl": {
    "h": 217.282,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.11309,
    "h": 259.8
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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