#335FB7#335FB7

#335FB7 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.148 H 262.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#335FB7
RGBrgb(51, 95, 183)
HSLhsl(220, 56%, 46%)
HSVhsv(220, 72%, 72%)
CMYKcmyk(72.1%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.70, 15.37, -51.06)
CIE-LCHlch(41.70, 53.32, 286.76°)
OKLaboklab(50.26% -0.0195 -0.1465)
OKLCHoklch(50.26% 0.148 262.4)
XYZxyz(14.0016, 12.3056, 46.4279)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB7 #B78B33
analogous
#33A1B7 #335FB7 #4933B7
triadic
#335FB7 #B7335F #5FB733
tetradic
#335FB7 #B733A1 #B78B33 #33B749
square
#335FB7 #B733A1 #B78B33 #33B749
split-complementary
#335FB7 #B74933 #A1B733
monochromatic
#182D57 #264687 #335FB7 #577FD0 #87A4DE

Accessibility & contrast

On white

6.07
#335FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#335FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB7#FFFFFF#000000##FFFFFF
##335FB71.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#095DB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb7;
/* rgb */ color: rgb(51, 95, 183);
/* oklch */ color: oklch(50.3% 0.148 262.4);
Tailwind
colors: {
  custom: {
    50: '#7b8bcd',
    500: '#335fb7',
    950: '#000000',
  },
}
SCSS
$custom: #335fb7;
$custom-light: #7b8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb7",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 220,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50255,
    "c": 0.14776,
    "h": 262.4
  },
  "luminance": 0.12307
}

Semantic roles & 50–950 ramp

primary
#335FB7
secondary
#C7AF7F
accent
#AD48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #335FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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