#335CB4#335CB4

#335CB4 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.147 H 263.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#335CB4
RGBrgb(51, 92, 180)
HSLhsl(221, 56%, 45%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(71.7%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.66, 16.20, -50.97)
CIE-LCHlch(40.66, 53.48, 287.63°)
OKLaboklab(49.4% -0.0173 -0.1463)
OKLCHoklch(49.4% 0.147 263.3)
XYZxyz(13.4277, 11.6520, 44.7126)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB4 #B48B33
analogous
#339CB4 #335CB4 #4A33B4
triadic
#335CB4 #B4335C #5CB433
tetradic
#335CB4 #B4339C #B48B33 #33B44A
square
#335CB4 #B4339C #B48B33 #33B44A
split-complementary
#335CB4 #B44A33 #9CB433
monochromatic
#182B55 #254484 #335CB4 #557CCF #85A1DC

Accessibility & contrast

On white

6.31
#335CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#335CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB4#FFFFFF#000000##FFFFFF
##335CB41.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B7
Deuteranopia (green-blind)
#015AB2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb4;
/* rgb */ color: rgb(51, 92, 180);
/* oklch */ color: oklch(49.4% 0.147 263.3);
Tailwind
colors: {
  custom: {
    50: '#7b89cb',
    500: '#335cb4',
    950: '#000000',
  },
}
SCSS
$custom: #335cb4;
$custom-light: #7b89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb4",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 220.93,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49396,
    "c": 0.1473,
    "h": 263.3
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#335CB4
secondary
#C6AF7D
accent
#AF49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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