#335DBC#335DBC

#335DBC is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.157 H 263.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#335DBC
RGBrgb(51, 93, 188)
HSLhsl(222, 57%, 47%)
HSVhsv(222, 73%, 74%)
CMYKcmyk(72.9%, 50.5%, 0%, 26.3%)
CIE-LABlab(41.47, 18.54, -54.34)
CIE-LCHlch(41.47, 57.41, 288.84°)
OKLaboklab(50.19% -0.0171 -0.1562)
OKLCHoklch(50.19% 0.157 263.7)
XYZxyz(14.3535, 12.1618, 49.1582)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DBC #BC9233
analogous
#33A2BC #335DBC #4E33BC
triadic
#335DBC #BC335D #5DBC33
tetradic
#335DBC #BC33A2 #BC9233 #33BC4E
square
#335DBC #BC33A2 #BC9233 #33BC4E
split-complementary
#335DBC #BC4E33 #A2BC33
monochromatic
#192D5C #26458C #335DBC #5A7FD2 #8AA4DF

Accessibility & contrast

On white

6.12
#335DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#335DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DBC
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DBC#FFFFFF#000000##FFFFFF
##335DBC1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335dbc;
/* rgb */ color: rgb(51, 93, 188);
/* oklch */ color: oklch(50.2% 0.157 263.7);
Tailwind
colors: {
  custom: {
    50: '#7d8ad1',
    500: '#335dbc',
    950: '#000000',
  },
}
SCSS
$custom: #335dbc;
$custom-light: #7d8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#335dbc",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 188
  },
  "hsl": {
    "h": 221.606,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50189,
    "c": 0.15711,
    "h": 263.7
  },
  "luminance": 0.12163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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