#335FB9#335FB9

#335FB9 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.151 H 262.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#335FB9
RGBrgb(51, 95, 185)
HSLhsl(220, 57%, 46%)
HSVhsv(220, 72%, 73%)
CMYKcmyk(72.4%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.83, 16.12, -52.01)
CIE-LCHlch(41.83, 54.45, 287.22°)
OKLaboklab(50.4% -0.0192 -0.1493)
OKLCHoklch(50.4% 0.151 262.7)
XYZxyz(14.2113, 12.3895, 47.5320)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB9 #B98D33
analogous
#33A2B9 #335FB9 #4A33B9
triadic
#335FB9 #B9335F #5FB933
tetradic
#335FB9 #B933A2 #B98D33 #33B94A
square
#335FB9 #B933A2 #B98D33 #33B94A
split-complementary
#335FB9 #B94A33 #A2B933
monochromatic
#192E59 #264689 #335FB9 #5880D1 #88A4DE

Accessibility & contrast

On white

6.04
#335FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#335FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB9
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB9#FFFFFF#000000##FFFFFF
##335FB91.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BC
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335fb9;
/* rgb */ color: rgb(51, 95, 185);
/* oklch */ color: oklch(50.4% 0.151 262.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bcf',
    500: '#335fb9',
    950: '#000000',
  },
}
SCSS
$custom: #335fb9;
$custom-light: #7c8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb9",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 220.299,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50397,
    "c": 0.15052,
    "h": 262.7
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#335FB9
secondary
#C8B080
accent
#AE48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #335FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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