#335EBC#335EBC

#335EBC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.156 H 263.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#335EBC
RGBrgb(51, 94, 188)
HSLhsl(221, 57%, 47%)
HSVhsv(221, 73%, 74%)
CMYKcmyk(72.9%, 50%, 0%, 26.3%)
CIE-LABlab(41.75, 17.89, -53.89)
CIE-LCHlch(41.75, 56.78, 288.36°)
OKLaboklab(50.4% -0.018 -0.1548)
OKLCHoklch(50.4% 0.156 263.4)
XYZxyz(14.4418, 12.3385, 49.1877)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EBC #BC9133
analogous
#33A3BC #335EBC #4D33BC
triadic
#335EBC #BC335E #5EBC33
tetradic
#335EBC #BC33A3 #BC9133 #33BC4D
square
#335EBC #BC33A3 #BC9133 #33BC4D
split-complementary
#335EBC #BC4D33 #A3BC33
monochromatic
#192E5C #26468C #335EBC #5A80D2 #8AA5DF

Accessibility & contrast

On white

6.06
#335EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#335EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EBC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EBC#FFFFFF#000000##FFFFFF
##335EBC1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769BF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335ebc;
/* rgb */ color: rgb(51, 94, 188);
/* oklch */ color: oklch(50.4% 0.156 263.4);
Tailwind
colors: {
  custom: {
    50: '#7d8bd1',
    500: '#335ebc',
    950: '#000000',
  },
}
SCSS
$custom: #335ebc;
$custom-light: #7d8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ebc",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 188
  },
  "hsl": {
    "h": 221.168,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.504,
    "c": 0.15588,
    "h": 263.4
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#335EBC
secondary
#C9B381
accent
#B047E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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