#335CB1#335CB1

#335CB1 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.143 H 262.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#335CB1
RGBrgb(51, 92, 177)
HSLhsl(220, 55%, 45%)
HSVhsv(220, 71%, 69%)
CMYKcmyk(71.2%, 48%, 0%, 30.6%)
CIE-LABlab(40.46, 15.07, -49.52)
CIE-LCHlch(40.46, 51.77, 286.93°)
OKLaboklab(49.18% -0.0177 -0.142)
OKLCHoklch(49.18% 0.143 262.9)
XYZxyz(13.1254, 11.5311, 43.1204)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB1 #B18833
analogous
#339BB1 #335CB1 #4933B1
triadic
#335CB1 #B1335C #5CB133
tetradic
#335CB1 #B1339B #B18833 #33B149
square
#335CB1 #B1339B #B18833 #33B149
split-complementary
#335CB1 #B14933 #9BB133
monochromatic
#182B52 #254381 #335CB1 #547BCE #83A0DB

Accessibility & contrast

On white

6.35
#335CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB1
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB1#FFFFFF#000000##FFFFFF
##335CB11.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B4
Deuteranopia (green-blind)
#0D5AAF
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335cb1;
/* rgb */ color: rgb(51, 92, 177);
/* oklch */ color: oklch(49.2% 0.143 262.9);
Tailwind
colors: {
  custom: {
    50: '#7a89c9',
    500: '#335cb1',
    950: '#000000',
  },
}
SCSS
$custom: #335cb1;
$custom-light: #7a89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb1",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 220.476,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49182,
    "c": 0.14312,
    "h": 262.9
  },
  "luminance": 0.11532
}

Semantic roles & 50–950 ramp

primary
#335CB1
secondary
#C5AD7B
accent
#AE49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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