#335BBB#335BBB

#335BBB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.158 H 264.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#335BBB
RGBrgb(51, 91, 187)
HSLhsl(222, 57%, 47%)
HSVhsv(222, 73%, 73%)
CMYKcmyk(72.7%, 51.3%, 0%, 26.7%)
CIE-LABlab(40.85, 19.46, -54.76)
CIE-LCHlch(40.85, 58.11, 289.57°)
OKLaboklab(49.7% -0.0156 -0.1574)
OKLCHoklch(49.7% 0.158 264.4)
XYZxyz(14.0728, 11.7723, 48.5347)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BBB #BB9333
analogous
#339FBB #335BBB #4F33BB
triadic
#335BBB #BB335B #5BBB33
tetradic
#335BBB #BB339F #BB9333 #33BB4F
square
#335BBB #BB339F #BB9333 #33BB4F
split-complementary
#335BBB #BB4F33 #9FBB33
monochromatic
#192C5B #26448B #335BBB #597DD2 #89A3DF

Accessibility & contrast

On white

6.26
#335BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#335BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BBB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BBB#FFFFFF#000000##FFFFFF
##335BBB1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335bbb;
/* rgb */ color: rgb(51, 91, 187);
/* oklch */ color: oklch(49.7% 0.158 264.4);
Tailwind
colors: {
  custom: {
    50: '#7c88d0',
    500: '#335bbb',
    950: '#000000',
  },
}
SCSS
$custom: #335bbb;
$custom-light: #7c88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#335bbb",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 222.353,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49695,
    "c": 0.1582,
    "h": 264.4
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#335BBB
secondary
#C9B481
accent
#B347E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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