#335FBC#335FBC

#335FBC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.155 H 263.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#335FBC
RGBrgb(51, 95, 188)
HSLhsl(221, 57%, 47%)
HSVhsv(221, 73%, 74%)
CMYKcmyk(72.9%, 49.5%, 0%, 26.3%)
CIE-LABlab(42.03, 17.24, -53.44)
CIE-LCHlch(42.03, 56.16, 287.88°)
OKLaboklab(50.61% -0.0188 -0.1535)
OKLCHoklch(50.61% 0.155 263)
XYZxyz(14.5313, 12.5175, 49.2175)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FBC #BC9033
analogous
#33A4BC #335FBC #4C33BC
triadic
#335FBC #BC335F #5FBC33
tetradic
#335FBC #BC33A4 #BC9033 #33BC4C
square
#335FBC #BC33A4 #BC9033 #33BC4C
split-complementary
#335FBC #BC4C33 #A4BC33
monochromatic
#192E5C #26478C #335FBC #5A81D2 #8AA5DF

Accessibility & contrast

On white

5.99
#335FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#335FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FBC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FBC#FFFFFF#000000##FFFFFF
##335FBC1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296ABF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335fbc;
/* rgb */ color: rgb(51, 95, 188);
/* oklch */ color: oklch(50.6% 0.155 263.0);
Tailwind
colors: {
  custom: {
    50: '#7c8bd1',
    500: '#335fbc',
    950: '#000000',
  },
}
SCSS
$custom: #335fbc;
$custom-light: #7c8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#335fbc",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 220.73,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50612,
    "c": 0.15465,
    "h": 263
  },
  "luminance": 0.12519
}

Semantic roles & 50–950 ramp

primary
#335FBC
secondary
#C9B281
accent
#AF47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #335FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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