#335FAF#335FAF

#335FAF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.137 H 261.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#335FAF
RGBrgb(51, 95, 175)
HSLhsl(219, 55%, 44%)
HSVhsv(219, 71%, 69%)
CMYKcmyk(70.9%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.19, 12.38, -47.18)
CIE-LCHlch(41.19, 48.78, 284.71°)
OKLaboklab(49.7% -0.0208 -0.1351)
OKLCHoklch(49.7% 0.137 261.2)
XYZxyz(13.1925, 11.9820, 42.1666)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FAF #AF8333
analogous
#339DAF #335FAF #4533AF
triadic
#335FAF #AF335F #5FAF33
tetradic
#335FAF #AF339D #AF8333 #33AF45
square
#335FAF #AF339D #AF8333 #33AF45
split-complementary
#335FAF #AF4533 #9DAF33
monochromatic
#172C50 #254580 #335FAF #527ECD #82A1DB

Accessibility & contrast

On white

6.18
#335FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#335FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FAF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FAF#FFFFFF#000000##FFFFFF
##335FAF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#1E5CAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335faf;
/* rgb */ color: rgb(51, 95, 175);
/* oklch */ color: oklch(49.7% 0.137 261.2);
Tailwind
colors: {
  custom: {
    50: '#7a8bc7',
    500: '#335faf',
    950: '#000000',
  },
}
SCSS
$custom: #335faf;
$custom-light: #7a8bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#335faf",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 218.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.13667,
    "h": 261.2
  },
  "luminance": 0.11983
}

Semantic roles & 50–950 ramp

primary
#335FAF
secondary
#C4AA7A
accent
#A94ADE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #335FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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