#335ED4#335ED4

#335ED4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.2% C 0.188 H 265.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#335ED4
RGBrgb(51, 94, 212)
HSLhsl(224, 65%, 52%)
HSVhsv(224, 76%, 83%)
CMYKcmyk(75.9%, 55.7%, 0%, 16.9%)
CIE-LABlab(43.45, 26.83, -65.00)
CIE-LCHlch(43.45, 70.32, 292.43°)
OKLaboklab(52.23% -0.0158 -0.1875)
OKLCHoklch(52.23% 0.188 265.2)
XYZxyz(17.2474, 13.4607, 63.9638)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ED4 #D4A933
analogous
#33AFD4 #335ED4 #5933D4
triadic
#335ED4 #D4335E #5ED433
tetradic
#335ED4 #D433AF #D4A933 #33D459
square
#335ED4 #D433AF #D4A933 #33D459
split-complementary
#335ED4 #D45933 #AFD433
monochromatic
#183174 #2346A7 #335ED4 #6686DF #98AEE9

Accessibility & contrast

On white

5.69
#335ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#335ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ED4
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ED4#FFFFFF#000000##FFFFFF
##335ED41.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #335ed4;
/* rgb */ color: rgb(51, 94, 212);
/* oklch */ color: oklch(52.2% 0.188 265.2);
Tailwind
colors: {
  custom: {
    50: '#828be2',
    500: '#335ed4',
    950: '#000000',
  },
}
SCSS
$custom: #335ed4;
$custom-light: #828be2;
$custom-dark: #000000;
JSON
{
  "hex": "#335ed4",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 223.975,
    "s": 65.182,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52227,
    "c": 0.18818,
    "h": 265.2
  },
  "luminance": 0.13463
}

Semantic roles & 50–950 ramp

primary
#335ED4
secondary
#D5C28E
accent
#BB40E8
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #335ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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