#335EB9#335EB9

#335EB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.152 H 263.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#335EB9
RGBrgb(51, 94, 185)
HSLhsl(221, 57%, 46%)
HSVhsv(221, 72%, 73%)
CMYKcmyk(72.4%, 49.2%, 0%, 27.5%)
CIE-LABlab(41.55, 16.77, -52.46)
CIE-LCHlch(41.55, 55.08, 287.72°)
OKLaboklab(50.18% -0.0184 -0.1506)
OKLCHoklch(50.18% 0.152 263.1)
XYZxyz(14.1218, 12.2105, 47.5021)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB9 #B98E33
analogous
#33A1B9 #335EB9 #4B33B9
triadic
#335EB9 #B9335E #5EB933
tetradic
#335EB9 #B933A1 #B98E33 #33B94B
square
#335EB9 #B933A1 #B98E33 #33B94B
split-complementary
#335EB9 #B94B33 #A1B933
monochromatic
#192D59 #264689 #335EB9 #587FD1 #88A4DE

Accessibility & contrast

On white

6.10
#335EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#335EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EB9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB9#FFFFFF#000000##FFFFFF
##335EB91.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335eb9;
/* rgb */ color: rgb(51, 94, 185);
/* oklch */ color: oklch(50.2% 0.152 263.1);
Tailwind
colors: {
  custom: {
    50: '#7c8bcf',
    500: '#335eb9',
    950: '#000000',
  },
}
SCSS
$custom: #335eb9;
$custom-light: #7c8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb9",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 185
  },
  "hsl": {
    "h": 220.746,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50183,
    "c": 0.15174,
    "h": 263.1
  },
  "luminance": 0.12212
}

Semantic roles & 50–950 ramp

primary
#335EB9
secondary
#C8B180
accent
#AF48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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