#335BB4#335BB4

#335BB4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.149 H 263.7°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#335BB4
RGBrgb(51, 91, 180)
HSLhsl(221, 56%, 45%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(71.7%, 49.4%, 0%, 29.4%)
CIE-LABlab(40.38, 16.85, -51.42)
CIE-LCHlch(40.38, 54.11, 288.14°)
OKLaboklab(49.18% -0.0164 -0.1476)
OKLCHoklch(49.18% 0.149 263.7)
XYZxyz(13.3416, 11.4799, 44.6839)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB4 #B48C33
analogous
#339CB4 #335BB4 #4B33B4
triadic
#335BB4 #B4335B #5BB433
tetradic
#335BB4 #B4339C #B48C33 #33B44B
square
#335BB4 #B4339C #B48C33 #33B44B
split-complementary
#335BB4 #B44B33 #9CB433
monochromatic
#182B55 #254384 #335BB4 #557BCF #85A0DC

Accessibility & contrast

On white

6.37
#335BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#335BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB4#FFFFFF#000000##FFFFFF
##335BB41.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb4;
/* rgb */ color: rgb(51, 91, 180);
/* oklch */ color: oklch(49.2% 0.149 263.7);
Tailwind
colors: {
  custom: {
    50: '#7b88cb',
    500: '#335bb4',
    950: '#000000',
  },
}
SCSS
$custom: #335bb4;
$custom-light: #7b88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb4",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 221.395,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49182,
    "c": 0.14853,
    "h": 263.7
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#335BB4
secondary
#C6AF7D
accent
#B049DF
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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