#335BB5#335BB5

#335BB5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.150 H 263.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#335BB5
RGBrgb(51, 91, 181)
HSLhsl(222, 56%, 45%)
HSVhsv(222, 72%, 71%)
CMYKcmyk(71.8%, 49.7%, 0%, 29%)
CIE-LABlab(40.44, 17.22, -51.90)
CIE-LCHlch(40.44, 54.69, 288.36°)
OKLaboklab(49.25% -0.0163 -0.149)
OKLCHoklch(49.25% 0.15 263.8)
XYZxyz(13.4439, 11.5208, 45.2223)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB5 #B58D33
analogous
#339CB5 #335BB5 #4C33B5
triadic
#335BB5 #B5335B #5BB533
tetradic
#335BB5 #B5339C #B58D33 #33B54C
square
#335BB5 #B5339C #B58D33 #33B54C
split-complementary
#335BB5 #B54C33 #9CB533
monochromatic
#182B56 #264385 #335BB5 #567BCF #86A0DD

Accessibility & contrast

On white

6.36
#335BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335BB5
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB5#FFFFFF#000000##FFFFFF
##335BB51.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb5;
/* rgb */ color: rgb(51, 91, 181);
/* oklch */ color: oklch(49.3% 0.150 263.8);
Tailwind
colors: {
  custom: {
    50: '#7b88cc',
    500: '#335bb5',
    950: '#000000',
  },
}
SCSS
$custom: #335bb5;
$custom-light: #7b88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb5",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 221.538,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49254,
    "c": 0.14992,
    "h": 263.8
  },
  "luminance": 0.11522
}

Semantic roles & 50–950 ramp

primary
#335BB5
secondary
#C6B07D
accent
#B148DF
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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