#335FB2#335FB2

#335FB2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.141 H 261.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#335FB2
RGBrgb(51, 95, 178)
HSLhsl(219, 55%, 45%)
HSVhsv(219, 71%, 70%)
CMYKcmyk(71.3%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.38, 13.50, -48.64)
CIE-LCHlch(41.38, 50.48, 285.51°)
OKLaboklab(49.91% -0.0203 -0.1394)
OKLCHoklch(49.91% 0.141 261.7)
XYZxyz(13.4905, 12.1012, 43.7356)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB2 #B28633
analogous
#339EB2 #335FB2 #4733B2
triadic
#335FB2 #B2335F #5FB233
tetradic
#335FB2 #B2339E #B28633 #33B247
square
#335FB2 #B2339E #B28633 #33B247
split-complementary
#335FB2 #B24733 #9EB233
monochromatic
#182C53 #254682 #335FB2 #547ECE #84A2DC

Accessibility & contrast

On white

6.14
#335FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#335FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB2#FFFFFF#000000##FFFFFF
##335FB21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#185CB0
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb2;
/* rgb */ color: rgb(51, 95, 178);
/* oklch */ color: oklch(49.9% 0.141 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#335fb2',
    950: '#000000',
  },
}
SCSS
$custom: #335fb2;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb2",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 219.213,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.14084,
    "h": 261.7
  },
  "luminance": 0.12103
}

Semantic roles & 50–950 ramp

primary
#335FB2
secondary
#C5AC7C
accent
#AB49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #335FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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