#335BB0#335BB0

#335BB0 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.143 H 263.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#335BB0
RGBrgb(51, 91, 176)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 69%)
CMYKcmyk(71%, 48.3%, 0%, 31%)
CIE-LABlab(40.11, 15.35, -49.50)
CIE-LCHlch(40.11, 51.82, 287.23°)
OKLaboklab(48.9% -0.017 -0.1419)
OKLCHoklch(48.9% 0.143 263.2)
XYZxyz(12.9400, 11.3192, 42.5687)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB0 #B08833
analogous
#339AB0 #335BB0 #4A33B0
triadic
#335BB0 #B0335B #5BB033
tetradic
#335BB0 #B0339A #B08833 #33B04A
square
#335BB0 #B0339A #B08833 #33B04A
split-complementary
#335BB0 #B04A33 #9AB033
monochromatic
#182A51 #254281 #335BB0 #537ACD #829FDB

Accessibility & contrast

On white

6.43
#335BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335BB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB0
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB0#FFFFFF#000000##FFFFFF
##335BB01.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B3
Deuteranopia (green-blind)
#0B59AE
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb0;
/* rgb */ color: rgb(51, 91, 176);
/* oklch */ color: oklch(48.9% 0.143 263.2);
Tailwind
colors: {
  custom: {
    50: '#7a88c8',
    500: '#335bb0',
    950: '#000000',
  },
}
SCSS
$custom: #335bb0;
$custom-light: #7a88c8;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb0",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 176
  },
  "hsl": {
    "h": 220.8,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48895,
    "c": 0.14296,
    "h": 263.2
  },
  "luminance": 0.11321
}

Semantic roles & 50–950 ramp

primary
#335BB0
secondary
#C4AD7B
accent
#AF49DE
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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