#335CBF#335CBF

#335CBF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.2% C 0.162 H 264.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#335CBF
RGBrgb(51, 92, 191)
HSLhsl(222, 58%, 47%)
HSVhsv(222, 73%, 75%)
CMYKcmyk(73.3%, 51.8%, 0%, 25.1%)
CIE-LABlab(41.40, 20.31, -56.20)
CIE-LCHlch(41.40, 59.76, 289.87°)
OKLaboklab(50.2% -0.016 -0.1617)
OKLCHoklch(50.2% 0.162 264.4)
XYZxyz(14.5930, 12.1181, 50.8501)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CBF #BF9633
analogous
#33A2BF #335CBF #5033BF
triadic
#335CBF #BF335C #5CBF33
tetradic
#335CBF #BF33A2 #BF9633 #33BF50
square
#335CBF #BF33A2 #BF9633 #33BF50
split-complementary
#335CBF #BF5033 #A2BF33
monochromatic
#192D5E #26458F #335CBF #5C7FD3 #8CA5E0

Accessibility & contrast

On white

6.13
#335CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335CBF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CBF#FFFFFF#000000##FFFFFF
##335CBF1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B68C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335cbf;
/* rgb */ color: rgb(51, 92, 191);
/* oklch */ color: oklch(50.2% 0.162 264.4);
Tailwind
colors: {
  custom: {
    50: '#7d89d3',
    500: '#335cbf',
    950: '#000000',
  },
}
SCSS
$custom: #335cbf;
$custom-light: #7d89d3;
$custom-dark: #000000;
JSON
{
  "hex": "#335cbf",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 191
  },
  "hsl": {
    "h": 222.429,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.16245,
    "h": 264.4
  },
  "luminance": 0.1212
}

Semantic roles & 50–950 ramp

primary
#335CBF
secondary
#CBB683
accent
#B447E1
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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