#335FA5#335FA5

#335FA5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.123 H 259.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#335FA5
RGBrgb(51, 95, 165)
HSLhsl(217, 53%, 42%)
HSVhsv(217, 69%, 65%)
CMYKcmyk(69.1%, 42.4%, 0%, 35.3%)
CIE-LABlab(40.58, 8.66, -42.25)
CIE-LCHlch(40.58, 43.13, 281.59°)
OKLaboklab(49.03% -0.0227 -0.1206)
OKLCHoklch(49.03% 0.123 259.3)
XYZxyz(12.2465, 11.6036, 37.1843)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA5 #A57933
analogous
#3398A5 #335FA5 #4033A5
triadic
#335FA5 #A5335F #5FA533
tetradic
#335FA5 #A53398 #A57933 #33A540
square
#335FA5 #A53398 #A57933 #33A540
split-complementary
#335FA5 #A54033 #98A533
monochromatic
#162948 #254476 #335FA5 #4D7DC8 #7C9FD6

Accessibility & contrast

On white

6.32
#335FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#335FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FA5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA5#FFFFFF#000000##FFFFFF
##335FA51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A8
Deuteranopia (green-blind)
#2C5BA4
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335fa5;
/* rgb */ color: rgb(51, 95, 165);
/* oklch */ color: oklch(49.0% 0.123 259.3);
Tailwind
colors: {
  custom: {
    50: '#788bc0',
    500: '#335fa5',
    950: '#000000',
  },
}
SCSS
$custom: #335fa5;
$custom-light: #788bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa5",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 216.842,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49033,
    "c": 0.1227,
    "h": 259.3
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#335FA5
secondary
#BFA275
accent
#A44CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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