#335FAA#335FAA

#335FAA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.4% C 0.130 H 260.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#335FAA
RGBrgb(51, 95, 170)
HSLhsl(218, 54%, 43%)
HSVhsv(218, 70%, 67%)
CMYKcmyk(70%, 44.1%, 0%, 33.3%)
CIE-LABlab(40.88, 10.52, -44.73)
CIE-LCHlch(40.88, 45.95, 283.24°)
OKLaboklab(49.36% -0.0217 -0.1279)
OKLCHoklch(49.36% 0.13 260.4)
XYZxyz(12.7105, 11.7892, 39.6281)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FAA #AA7E33
analogous
#339AAA #335FAA #4233AA
triadic
#335FAA #AA335F #5FAA33
tetradic
#335FAA #AA339A #AA7E33 #33AA42
square
#335FAA #AA339A #AA7E33 #33AA42
split-complementary
#335FAA #AA4233 #9AAA33
monochromatic
#172A4C #25457B #335FAA #507DCA #7FA0D9

Accessibility & contrast

On white

6.25
#335FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#335FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FAA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FAA#FFFFFF#000000##FFFFFF
##335FAA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AD
Deuteranopia (green-blind)
#265BA8
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335faa;
/* rgb */ color: rgb(51, 95, 170);
/* oklch */ color: oklch(49.4% 0.130 260.4);
Tailwind
colors: {
  custom: {
    50: '#798bc4',
    500: '#335faa',
    950: '#000000',
  },
}
SCSS
$custom: #335faa;
$custom-light: #798bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#335faa",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 217.815,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49362,
    "c": 0.12969,
    "h": 260.4
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#335FAA
secondary
#C2A677
accent
#A74BDD
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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