#335EB5#335EB5

#335EB5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.146 H 262.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#335EB5
RGBrgb(51, 94, 181)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(71.8%, 48.1%, 0%, 29%)
CIE-LABlab(41.29, 15.27, -50.55)
CIE-LCHlch(41.29, 52.80, 286.81°)
OKLaboklab(49.9% -0.0189 -0.145)
OKLCHoklch(49.9% 0.146 262.6)
XYZxyz(13.7055, 12.0440, 45.3095)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB5 #B58A33
analogous
#339FB5 #335EB5 #4933B5
triadic
#335EB5 #B5335E #5EB533
tetradic
#335EB5 #B5339F #B58A33 #33B549
square
#335EB5 #B5339F #B58A33 #33B549
split-complementary
#335EB5 #B54933 #9FB533
monochromatic
#182C56 #264585 #335EB5 #567ECF #86A2DD

Accessibility & contrast

On white

6.16
#335EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#335EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EB5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB5#FFFFFF#000000##FFFFFF
##335EB51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B8
Deuteranopia (green-blind)
#0A5CB3
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335eb5;
/* rgb */ color: rgb(51, 94, 181);
/* oklch */ color: oklch(49.9% 0.146 262.6);
Tailwind
colors: {
  custom: {
    50: '#7b8bcc',
    500: '#335eb5',
    950: '#000000',
  },
}
SCSS
$custom: #335eb5;
$custom-light: #7b8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb5",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 220.154,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49898,
    "c": 0.14622,
    "h": 262.6
  },
  "luminance": 0.12045
}

Semantic roles & 50–950 ramp

primary
#335EB5
secondary
#C6AE7D
accent
#AD48DF
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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