#335BBA#335BBA

#335BBA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.157 H 264.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#335BBA
RGBrgb(51, 91, 186)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 73%, 73%)
CMYKcmyk(72.6%, 51.1%, 0%, 27.1%)
CIE-LABlab(40.78, 19.09, -54.28)
CIE-LCHlch(40.78, 57.54, 289.37°)
OKLaboklab(49.62% -0.0157 -0.156)
OKLCHoklch(49.62% 0.157 264.3)
XYZxyz(13.9661, 11.7297, 47.9729)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BBA #BA9233
analogous
#339FBA #335BBA #4F33BA
triadic
#335BBA #BA335B #5BBA33
tetradic
#335BBA #BA339F #BA9233 #33BA4F
square
#335BBA #BA339F #BA9233 #33BA4F
split-complementary
#335BBA #BA4F33 #9FBA33
monochromatic
#192C5A #26448A #335BBA #597DD1 #89A2DF

Accessibility & contrast

On white

6.28
#335BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335BBA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BBA#FFFFFF#000000##FFFFFF
##335BBA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335bba;
/* rgb */ color: rgb(51, 91, 186);
/* oklch */ color: oklch(49.6% 0.157 264.3);
Tailwind
colors: {
  custom: {
    50: '#7c88cf',
    500: '#335bba',
    950: '#000000',
  },
}
SCSS
$custom: #335bba;
$custom-light: #7c88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#335bba",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 222.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.15683,
    "h": 264.3
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#335BBA
secondary
#C9B380
accent
#B348E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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