#335BB1#335BB1

#335BB1 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.144 H 263.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#335BB1
RGBrgb(51, 91, 177)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(71.2%, 48.6%, 0%, 30.6%)
CIE-LABlab(40.18, 15.73, -49.98)
CIE-LCHlch(40.18, 52.40, 287.47°)
OKLaboklab(48.97% -0.0168 -0.1434)
OKLCHoklch(48.97% 0.144 263.3)
XYZxyz(13.0393, 11.3589, 43.0918)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB1 #B18933
analogous
#339AB1 #335BB1 #4A33B1
triadic
#335BB1 #B1335B #5BB133
tetradic
#335BB1 #B1339A #B18933 #33B14A
square
#335BB1 #B1339A #B18933 #33B14A
split-complementary
#335BB1 #B14A33 #9AB133
monochromatic
#182A52 #254381 #335BB1 #547ACE #839FDB

Accessibility & contrast

On white

6.42
#335BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#335BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB1#FFFFFF#000000##FFFFFF
##335BB11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#0659AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb1;
/* rgb */ color: rgb(51, 91, 177);
/* oklch */ color: oklch(49.0% 0.144 263.3);
Tailwind
colors: {
  custom: {
    50: '#7a88c9',
    500: '#335bb1',
    950: '#000000',
  },
}
SCSS
$custom: #335bb1;
$custom-light: #7a88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb1",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 220.952,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.14436,
    "h": 263.3
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#335BB1
secondary
#C5AD7B
accent
#AF49DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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